From: Ian Romanick Date: Fri, 2 Apr 2010 23:08:44 +0000 (-0700) Subject: Use glsl_type::element_type to get the type of array elements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb9cba20a0923573d61a6360e45a7daac93a982b;p=mesa.git Use glsl_type::element_type to get the type of array elements --- diff --git a/ast_function.cpp b/ast_function.cpp index 28698375723..cd57c32040b 100644 --- a/ast_function.cpp +++ b/ast_function.cpp @@ -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);