glsl_lexer: centroid and invariant are not reserved words in GLSL 1.10
This commit is contained in:
+16
-2
@@ -156,8 +156,22 @@ out return OUT;
|
||||
inout return INOUT;
|
||||
uniform return UNIFORM;
|
||||
varying return VARYING;
|
||||
centroid return CENTROID;
|
||||
invariant return INVARIANT;
|
||||
centroid {
|
||||
if (yyextra->language_version >= 120) {
|
||||
return CENTROID;
|
||||
} else {
|
||||
yylval->identifier = strdup(yytext);
|
||||
return IDENTIFIER;
|
||||
}
|
||||
}
|
||||
invariant {
|
||||
if (yyextra->language_version >= 120) {
|
||||
return INVARIANT;
|
||||
} else {
|
||||
yylval->identifier = strdup(yytext);
|
||||
return IDENTIFIER;
|
||||
}
|
||||
}
|
||||
|
||||
flat {
|
||||
if (yyextra->language_version >= 130) {
|
||||
|
||||
Reference in New Issue
Block a user