st/mesa: avoid exposing EXT_texture_integer for pre-GLSL 1.30
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 30 Nov 2014 03:12:12 +0000 (22:12 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 30 Nov 2014 18:04:29 +0000 (13:04 -0500)
For drivers building up to GL(ES)3, only expose the actual extension if
the API will let it be used (e.g. via overrides/debug flags that enable
higher versions).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c

index bdfab8b41e756caa3e0a3fd12e5f75be91d90e03..20a6845e3b263b687528e27adb66ab2e325f2db4 100644 (file)
@@ -696,6 +696,9 @@ void st_init_extensions(struct pipe_screen *screen,
 
          extensions->EXT_shader_integer_mix = GL_TRUE;
       }
+
+      /* Integer textures make no sense before GLSL 1.30 */
+      extensions->EXT_texture_integer = GL_FALSE;
    }
 
    consts->UniformBooleanTrue = consts->NativeIntegers ? ~0 : fui(1.0f);