diff options
author | Ian Romanick <[email protected]> | 2010-08-13 09:26:01 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-08-13 09:29:39 -0700 |
commit | 5b9f3db71996a1296c7da8501dd3b159bfe8c2b2 (patch) | |
tree | ebc77070a698921eb376a5c903bc8e5538eb90bd /src/glsl/glsl_lexer.lpp | |
parent | 3a3cdb909da5b02edf921fcb5a009dfc2868d23d (diff) |
glsl2: Eliminate tokens for square matrix short names
MAT2 and MAT2X2, for example, are treated identically by the parser.
The language version based error checking (becuase mat2x2 is not
available in GLSL 1.10) is already done in the lexer.
Diffstat (limited to 'src/glsl/glsl_lexer.lpp')
-rw-r--r-- | src/glsl/glsl_lexer.lpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/glsl_lexer.lpp b/src/glsl/glsl_lexer.lpp index 7ef537b2487..a96078e481a 100644 --- a/src/glsl/glsl_lexer.lpp +++ b/src/glsl/glsl_lexer.lpp @@ -151,9 +151,9 @@ ivec4 return IVEC4; vec2 return VEC2; vec3 return VEC3; vec4 return VEC4; -mat2 return MAT2; -mat3 return MAT3; -mat4 return MAT4; +mat2 return MAT2X2; +mat3 return MAT3X3; +mat4 return MAT4X4; mat2x2 TOKEN_OR_IDENTIFIER(120, MAT2X2); mat2x3 TOKEN_OR_IDENTIFIER(120, MAT2X3); mat2x4 TOKEN_OR_IDENTIFIER(120, MAT2X4); |