mesa shaderapi: don't enable various functions for GL CORE
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 24 Oct 2012 01:13:32 +0000 (18:13 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 3 Nov 2012 17:54:40 +0000 (10:54 -0700)
These EXT_separate_shader_objects function will no longer be
enabled for CORE profiles:
* UseShaderProgramEXT
* ActiveProgramEXT
* CreateShaderProgramEXT

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/shaderapi.c

index ec1559d6fe73a734223bbd275addb3a6de3845dd..75c4c66ac935ebceb82ab1b450f3d141a1753355 100644 (file)
@@ -1736,7 +1736,9 @@ _mesa_init_shader_dispatch(const struct gl_context *ctx,
 
    if (_mesa_is_desktop_gl(ctx)) {
       SET_ProgramParameteriARB(exec, _mesa_ProgramParameteriARB);
+   }
 
+   if (ctx->API == API_OPENGL) {
       SET_UseShaderProgramEXT(exec, _mesa_UseShaderProgramEXT);
       SET_ActiveProgramEXT(exec, _mesa_ActiveProgramEXT);
       SET_CreateShaderProgramEXT(exec, _mesa_CreateShaderProgramEXT);