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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9703ed05e684f4269cd8af27c94e9b6bf8781d85;p=mesa.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 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; } }