mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
d612a127cc
commit
3e0ef5f81b
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue