diff options
author | Eric Anholt <[email protected]> | 2010-07-22 15:50:37 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-22 15:56:07 -0700 |
commit | 9703ed05e684f4269cd8af27c94e9b6bf8781d85 (patch) | |
tree | 42788c273671a0f8356cecfcb818306060d31497 | |
parent | c3081e627302429cdf2ee23a40fb20fa5cbf5770 (diff) |
glsl2: When setting the size of an unsized array, set its deref's size too.
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 5e26f21e9af..c03206fd2e5 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -531,6 +531,7 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state, var->type = glsl_type::get_array_instance(lhs->type->element_type(), rhs->type->array_size()); + d->type = var->type; } } |