From: Eric Anholt Date: Thu, 22 Jul 2010 22:50:37 +0000 (-0700) Subject: glsl2: When setting the size of an unsized array, set its deref's size too. X-Git-Tag: 062012170305~10660^2~303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9703ed05e684f4269cd8af27c94e9b6bf8781d85;p=profile%2Fivi%2Fmesa.git glsl2: When setting the size of an unsized array, set its deref's size too. --- 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; } }