summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-22 15:50:37 -0700
committerEric Anholt <[email protected]>2010-07-22 15:56:07 -0700
commit9703ed05e684f4269cd8af27c94e9b6bf8781d85 (patch)
tree42788c273671a0f8356cecfcb818306060d31497 /src/glsl
parentc3081e627302429cdf2ee23a40fb20fa5cbf5770 (diff)
glsl2: When setting the size of an unsized array, set its deref's size too.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ast_to_hir.cpp1
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;
}
}