summaryrefslogtreecommitdiff
path: root/dist/Mesa/src/glsl/opt_constant_folding.cpp
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-17 13:58:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-08-17 13:58:22 +0000
commit9c5e6654f7fbf2935a87fa3fd8ae47ff1e9a59a0 (patch)
treec90ae6d648f4f56949500d956d67f545612d1220 /dist/Mesa/src/glsl/opt_constant_folding.cpp
parentce102378455fdaa6d4037e4c9741d7fea8915117 (diff)
Upate to libGL 7.11.2
Tested by jsg@, matthieu@ and ajacoutot@, ok mattieu@
Diffstat (limited to 'dist/Mesa/src/glsl/opt_constant_folding.cpp')
-rw-r--r--dist/Mesa/src/glsl/opt_constant_folding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/Mesa/src/glsl/opt_constant_folding.cpp b/dist/Mesa/src/glsl/opt_constant_folding.cpp
index d69ca75fe..599b21525 100644
--- a/dist/Mesa/src/glsl/opt_constant_folding.cpp
+++ b/dist/Mesa/src/glsl/opt_constant_folding.cpp
@@ -122,7 +122,7 @@ ir_constant_folding_visitor::visit_enter(ir_call *ir)
ir_rvalue *param_rval = (ir_rvalue *)iter.get();
ir_variable *sig_param = (ir_variable *)sig_iter.get();
- if (sig_param->mode == ir_var_in) {
+ if (sig_param->mode == ir_var_in || sig_param->mode == ir_var_const_in) {
ir_rvalue *new_param = param_rval;
handle_rvalue(&new_param);