diff options
author | Oliver McFadden <[email protected]> | 2012-07-05 11:22:06 +0300 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2012-07-26 13:09:15 +0300 |
commit | e72f20641a6ea7875b6021aac13e778ada3b3d50 (patch) | |
tree | c99592786d343b3fe5cc289be1eadee576f2b999 /src/glsl | |
parent | 16cba717c21f9f6a23d4934c5df898a4b9ce7fd1 (diff) |
glsl: warning: pragma `invariant(all)' not supported in GLSL ES 1.00
The OpenGL(R) ES Shading Language
Version 1.00 Revision 17 (12 May, 2009)
> 4.6.1 The Invariant Qualifier
> ... To force all output variables to be invariant, use the pragma
> #pragma STDGL invariant(all)
Signed-off-by: Oliver McFadden <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser.yy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index b2533c8476f..f61d6b8dd3e 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -301,7 +301,7 @@ pragma_statement: | PRAGMA_OPTIMIZE_OFF EOL | PRAGMA_INVARIANT_ALL EOL { - if (state->language_version < 120) { + if (state->language_version < 120 && !state->Const.GLSL_100ES) { _mesa_glsl_warning(& @1, state, "pragma `invariant(all)' not supported in %s", state->version_string); |