Use glsl_type::element_type to get the type of array elements
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Apr 2010 23:08:44 +0000 (16:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Apr 2010 23:08:44 +0000 (16:08 -0700)
ast_function.cpp

index 28698375723f65d0af9da6bec9c74c79bc641144..cd57c32040bf1f96a9fb071f17d4454e32ef36db 100644 (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);