summaryrefslogtreecommitdiff
path: root/ast_function.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-02 16:08:44 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-02 16:08:44 -0700
commitcb9cba20a0923573d61a6360e45a7daac93a982b (patch)
treef2cc8ac40bda5d7159115666950ed93f4d1f85f6 /ast_function.cpp
parentc35bb00130a3f400af1ab9c5eff555c4f9e143d2 (diff)
Use glsl_type::element_type to get the type of array elements
Diffstat (limited to 'ast_function.cpp')
-rw-r--r--ast_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_function.cpp b/ast_function.cpp
index 2869837572..cd57c32040 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);