From 3e0ef5f81b08a1496d952d3673b614497be9c75a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 31 Mar 2010 16:22:56 -0700 Subject: [PATCH] Use ast_type_specifier::glsl_type to get the type of a constructor This is the first baby step towards getting array constructors working. --- ast_function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast_function.cpp b/ast_function.cpp index 36bf0c9cc2d..f8c2b6eaa27 100644 --- a/ast_function.cpp +++ b/ast_function.cpp @@ -177,9 +177,9 @@ ast_function_expression::hir(exec_list *instructions, if (is_constructor()) { const ast_type_specifier *type = (ast_type_specifier *) subexpressions[0]; YYLTYPE loc = type->get_location(); + const char *name; - const glsl_type *const constructor_type = - state->symbols->get_type(type->type_name); + const glsl_type *const constructor_type = type->glsl_type(& name, state); /* Constructors for samplers are illegal. -- 2.30.2