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