diff options
Diffstat (limited to 'src/compiler/glsl/ast_array_index.cpp')
-rw-r--r-- | src/compiler/glsl/ast_array_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ast_array_index.cpp b/src/compiler/glsl/ast_array_index.cpp index efddbed6ea3..3b30f6858e0 100644 --- a/src/compiler/glsl/ast_array_index.cpp +++ b/src/compiler/glsl/ast_array_index.cpp @@ -167,7 +167,7 @@ _mesa_ast_array_index_to_hir(void *mem_ctx, * index is not a constant expression, ensure that the array has a * declared size. */ - ir_constant *const const_index = idx->constant_expression_value(); + ir_constant *const const_index = idx->constant_expression_value(mem_ctx); if (const_index != NULL && idx->type->is_integer()) { const int idx = const_index->value.i[0]; const char *type_name = "error"; |