glsl: Disable ARB_texture_rectangle in shader version 100.
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 17 Jan 2014 20:23:05 +0000 (12:23 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 23 Jan 2014 19:33:22 +0000 (11:33 -0800)
OpenGL with ARB_ES2_compatibility allows shaders that specify #version
100.

This fixes the Khronos OpenGL test(Texture_Rectangle_Samplers_frag.test)
failure.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/glsl_parser_extras.cpp

index e55018785601f983e9341dfe70e2b077881c658c..87784ed6900bd0e5189ef0efd5dd23aa2d0abf88 100644 (file)
@@ -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;