From: Ian Romanick Date: Wed, 31 Mar 2010 23:22:56 +0000 (-0700) Subject: Use ast_type_specifier::glsl_type to get the type of a constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e0ef5f81b08a1496d952d3673b614497be9c75a;p=mesa.git Use ast_type_specifier::glsl_type to get the type of a constructor This is the first baby step towards getting array constructors working. --- 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.