projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3081e6
)
glsl2: When setting the size of an unsized array, set its deref's size too.
author
Eric Anholt
<eric@anholt.net>
Thu, 22 Jul 2010 22:50:37 +0000
(15:50 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 22 Jul 2010 22:56:07 +0000
(15:56 -0700)
src/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index 5e26f21e9af04640bcb0344756b43a878992b2e7..c03206fd2e5165815d85c769d7fd488800319b92 100644
(file)
--- 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;
}
}