summaryrefslogtreecommitdiff
path: root/ast_function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ast_function.cpp')
-rw-r--r--ast_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_function.cpp b/ast_function.cpp
index 7931633c5a..300108cb73 100644
--- a/ast_function.cpp
+++ b/ast_function.cpp
@@ -200,7 +200,7 @@ dereference_component(ir_rvalue *src, unsigned component)
const int c = component / src->type->column_type()->vector_elements;
const int r = component % src->type->column_type()->vector_elements;
ir_constant *const col_index = new ir_constant(glsl_type::int_type, &c);
- ir_dereference *const col = new ir_dereference(src, col_index);
+ ir_dereference *const col = new ir_dereference_array(src, col_index);
col->type = src->type->column_type();