diff options
author | Anuj Phogat <[email protected]> | 2014-01-17 12:23:05 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-01-23 11:33:22 -0800 |
commit | c907595ba77a0c74b18b6908f71fafc3c08e2886 (patch) | |
tree | af33f5b021498a5be8910e3f8b5e5249eb4897c4 | |
parent | e0648015e96e6b484aa75cd6da1f0a506afb1636 (diff) |
glsl: Disable ARB_texture_rectangle in shader version 100.
OpenGL with ARB_ES2_compatibility allows shaders that specify #version
100.
This fixes the Khronos OpenGL test(Texture_Rectangle_Samplers_frag.test)
failure.
Cc: [email protected]
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Anuj Phogat <[email protected]>
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index e5501878560..87784ed6900 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -291,6 +291,10 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version, } } + if (this->es_shader) { + this->ARB_texture_rectangle_enable = false; + } + this->language_version = version; bool supported = false; |