glsl2: glsl_type has its own talloc context, don't pass one in

This commit is contained in:
Ian Romanick
2010-07-20 15:33:40 -07:00
parent a7ba9a7919
commit f38d15b80d
6 changed files with 18 additions and 25 deletions

View File

@@ -312,8 +312,7 @@ process_array_constructor(exec_list *instructions,
if (constructor_type->length == 0) {
constructor_type =
glsl_type::get_array_instance(state,
constructor_type->element_type(),
glsl_type::get_array_instance(constructor_type->element_type(),
parameter_count);
assert(constructor_type != NULL);
assert(constructor_type->length == parameter_count);