diff options
author | Ian Romanick <[email protected]> | 2010-03-31 16:22:56 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-31 16:22:56 -0700 |
commit | 3e0ef5f81b08a1496d952d3673b614497be9c75a (patch) | |
tree | 53fa2cfc177a399b5c6a7363e8f4dc5c3dc0996c /ast_function.cpp | |
parent | d612a127ccf12c11204f7f72a332de12f58f85a2 (diff) |
Use ast_type_specifier::glsl_type to get the type of a constructor
This is the first baby step towards getting array constructors working.
Diffstat (limited to 'ast_function.cpp')
-rw-r--r-- | ast_function.cpp | 4 |
1 files 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. |