[Mesa-dev] [PATCH v2 02/13] mesa shaderapi: don't enable various functions for GL CORE

Jordan Justen jordan.l.justen at intel.com
Tue Oct 30 11:25:23 PDT 2012


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 at intel.com>
---
 src/mesa/main/shaderapi.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index d40a353..cc1c840 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1734,7 +1734,9 @@ _mesa_init_shader_dispatch(const struct gl_context *ctx,
 
    if (ctx->API != API_OPENGLES2) {
       SET_ProgramParameteriARB(exec, _mesa_ProgramParameteriARB);
+   }
 
+   if (ctx->API != API_OPENGLES2 && ctx->API != API_OPENGL_CORE) {
       SET_UseShaderProgramEXT(exec, _mesa_UseShaderProgramEXT);
       SET_ActiveProgramEXT(exec, _mesa_ActiveProgramEXT);
       SET_CreateShaderProgramEXT(exec, _mesa_CreateShaderProgramEXT);
-- 
1.7.9.5



More information about the mesa-dev mailing list