Mesa (glsl2): glsl2: When setting the size of an unsized array, set its deref's size too.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Jul 22 22:56:36 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 9703ed05e684f4269cd8af27c94e9b6bf8781d85
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9703ed05e684f4269cd8af27c94e9b6bf8781d85
Author: Eric Anholt <eric at 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;
}
}
More information about the mesa-commit
mailing list