aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/opt_flip_matrices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/opt_flip_matrices.cpp')
-rw-r--r--mesalib/src/glsl/opt_flip_matrices.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesalib/src/glsl/opt_flip_matrices.cpp b/mesalib/src/glsl/opt_flip_matrices.cpp
index 9044fd680..04c6170b8 100644
--- a/mesalib/src/glsl/opt_flip_matrices.cpp
+++ b/mesalib/src/glsl/opt_flip_matrices.cpp
@@ -45,8 +45,7 @@ public:
mvp_transpose = NULL;
texmat_transpose = NULL;
- foreach_list(n, instructions) {
- ir_instruction *ir = (ir_instruction *) n;
+ foreach_in_list(ir_instruction, ir, instructions) {
ir_variable *var = ir->as_variable();
if (!var)
continue;