From: Anuj Phogat Date: Fri, 17 Jan 2014 20:23:05 +0000 (-0800) Subject: glsl: Disable ARB_texture_rectangle in shader version 100. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c907595ba77a0c74b18b6908f71fafc3c08e2886;p=mesa.git 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: mesa-stable@lists.freedesktop.org Reviewed-by: Matt Turner Reviewed-by: Ian Romanick Signed-off-by: Anuj Phogat --- 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;