summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glsl_parser.ypp4
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_parser.ypp b/glsl_parser.ypp
index 250c51c7ee..131f23d8c1 100644
--- a/glsl_parser.ypp
+++ b/glsl_parser.ypp
@@ -84,7 +84,7 @@
%token ISAMPLER1DARRAY ISAMPLER2DARRAY USAMPLER1D USAMPLER2D USAMPLER3D
%token USAMPLERCUBE USAMPLER1DARRAY USAMPLER2DARRAY
%token STRUCT VOID WHILE
-%token <identifier> IDENTIFIER TYPE_NAME
+%token <identifier> IDENTIFIER
%token <real> FLOATCONSTANT
%token <n> INTCONSTANT UINTCONSTANT BOOLCONSTANT
%token <identifier> FIELD_SELECTION
@@ -941,7 +941,7 @@ type_specifier_nonarray:
$$ = new ast_type_specifier($1);
$$->set_location(yylloc);
}
- | TYPE_NAME
+ | IDENTIFIER
{
$$ = new ast_type_specifier($1);
$$->set_location(yylloc);