Use glsl_type::element_type to get the type of array elements

This commit is contained in:
Ian Romanick 2010-04-02 16:08:44 -07:00
parent c35bb00130
commit cb9cba20a0
1 changed files with 1 additions and 1 deletions

View File

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