diff options
Diffstat (limited to 'src/glsl/opt_flip_matrices.cpp')
-rw-r--r-- | src/glsl/opt_flip_matrices.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/opt_flip_matrices.cpp b/src/glsl/opt_flip_matrices.cpp index 9044fd68066..04c6170b845 100644 --- a/src/glsl/opt_flip_matrices.cpp +++ b/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; |