summaryrefslogtreecommitdiffstats
path: root/glsl_lexer.lpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-06-18 18:36:51 -0700
committerIan Romanick <[email protected]>2010-06-18 19:02:45 -0700
commit8655b7e78a40f7f64b744727071b946c0da75217 (patch)
tree1183021c351573785c96718dd6c54d5a77238d22 /glsl_lexer.lpp
parentc93b8f1d2cd6a0b084f8e08bfa54e03c154081d4 (diff)
glsl_lexer: Handle interpolation qualifiers
Diffstat (limited to 'glsl_lexer.lpp')
-rw-r--r--glsl_lexer.lpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp
index 34ca229de8d..5cea534bafd 100644
--- a/glsl_lexer.lpp
+++ b/glsl_lexer.lpp
@@ -159,6 +159,31 @@ varying return VARYING;
centroid return CENTROID;
invariant return INVARIANT;
+flat {
+ if (yyextra->language_version >= 130) {
+ return FLAT;
+ } else {
+ yylval->identifier = strdup(yytext);
+ return IDENTIFIER;
+ }
+ }
+smooth {
+ if (yyextra->language_version >= 130) {
+ return SMOOTH;
+ } else {
+ yylval->identifier = strdup(yytext);
+ return IDENTIFIER;
+ }
+ }
+noperspective {
+ if (yyextra->language_version >= 130) {
+ return NOPERSPECTIVE;
+ } else {
+ yylval->identifier = strdup(yytext);
+ return IDENTIFIER;
+ }
+ }
+
sampler1D return SAMPLER1D;
sampler2D return SAMPLER2D;
sampler3D return SAMPLER3D;