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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesalib/src/glsl/opt_flip_matrices.cpp b/mesalib/src/glsl/opt_flip_matrices.cpp
index 497513fe8..2107b1d47 100644
--- a/mesalib/src/glsl/opt_flip_matrices.cpp
+++ b/mesalib/src/glsl/opt_flip_matrices.cpp
@@ -81,8 +81,10 @@ matrix_flipper::visit_enter(ir_expression *ir)
if (mvp_transpose &&
strcmp(mat_var->name, "gl_ModelViewProjectionMatrix") == 0) {
+#ifndef NDEBUG
ir_dereference_variable *deref = ir->operands[0]->as_dereference_variable();
assert(deref && deref->var == mat_var);
+#endif
void *mem_ctx = ralloc_parent(ir);