diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-22 00:25:55 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-22 00:25:55 -0700 |
commit | 25851a8d873a3cb4f6ab3252364eb46a87e1a959 (patch) | |
tree | 546f9a9d8c32bf74032292ba238f513b631417b5 | |
parent | 67029b13b7e47a5e8368f7cb216cb332439cfd90 (diff) |
Fix illegal (var_ref (array_ref ...)) in matrix constructors.
-rw-r--r-- | glsl_types.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp index 508a75703d..4cd0f46aab 100644 --- a/glsl_types.cpp +++ b/glsl_types.cpp @@ -372,10 +372,7 @@ generate_mat_body_from_N_scalars(exec_list *instructions, ir_dereference *const row_access = new ir_dereference(declarations[16], row_index); - ir_dereference *const component_access_ref = - new ir_dereference(row_access); - - ir_swizzle *component_access = new ir_swizzle(component_access_ref, + ir_swizzle *component_access = new ir_swizzle(row_access, j, 0, 0, 0, 1); const unsigned param = (i * row_type->vector_elements) + j; |