diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-07-20 15:33:40 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-07-20 17:48:25 -0700 |
commit | f38d15b80d4e4c8ecb7a76087cdc49835f0aa271 (patch) | |
tree | 2bd80b63219d43c827a19b434009c894e1e61f04 /src/glsl/ast_to_hir.cpp | |
parent | a7ba9a7919110fd619b0e792368aa1f3534080fe (diff) |
glsl2: glsl_type has its own talloc context, don't pass one in
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index c68e136256..5cadcd1946 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -511,8 +511,7 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state, var->max_array_access); } - var->type = glsl_type::get_array_instance(state, - lhs->type->element_type(), + var->type = glsl_type::get_array_instance(lhs->type->element_type(), rhs->type->array_size()); } } @@ -1407,7 +1406,7 @@ process_array_type(const glsl_type *base, ast_node *array_size, } } - return glsl_type::get_array_instance(state, base, length); + return glsl_type::get_array_instance(base, length); } |