Use ast_type_specifier::glsl_type to get the type of a constructor

This is the first baby step towards getting array constructors working.
This commit is contained in:
Ian Romanick 2010-03-31 16:22:56 -07:00
parent d612a127cc
commit 3e0ef5f81b

View file

@ -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.