Module: Mesa Branch: glsl2 Commit: 9703ed05e684f4269cd8af27c94e9b6bf8781d85 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9703ed05e684f4269cd8af27c94e9b6bf8781d85
Author: Eric Anholt <e...@anholt.net> Date: Thu Jul 22 15:50:37 2010 -0700 glsl2: When setting the size of an unsized array, set its deref's size too. --- 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 5e26f21..c03206f 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; } } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit