From: Jordan Justen Date: Wed, 24 Oct 2012 01:13:32 +0000 (-0700) Subject: mesa shaderapi: don't enable various functions for GL CORE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e036966bbc8ba8a34c128202b4de97125799533;p=mesa.git mesa shaderapi: don't enable various functions for GL CORE These EXT_separate_shader_objects function will no longer be enabled for CORE profiles: * UseShaderProgramEXT * ActiveProgramEXT * CreateShaderProgramEXT Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index ec1559d6fe7..75c4c66ac93 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -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);