diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/opt_constant_propagation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/opt_constant_propagation.cpp b/src/compiler/glsl/opt_constant_propagation.cpp index 6ec4ab498d9..69bca744ee7 100644 --- a/src/compiler/glsl/opt_constant_propagation.cpp +++ b/src/compiler/glsl/opt_constant_propagation.cpp @@ -145,7 +145,7 @@ ir_constant_propagation_visitor::constant_folding(ir_rvalue **rvalue) this->progress = true; ir_dereference_variable *var_ref = (*rvalue)->as_dereference_variable(); - if (var_ref) { + if (var_ref && !var_ref->type->is_array()) { ir_constant *constant = var_ref->constant_expression_value(); if (constant) { *rvalue = constant; |