diff options
author | Jordan Justen <[email protected]> | 2012-10-23 18:13:32 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-11-03 10:54:40 -0700 |
commit | 9e036966bbc8ba8a34c128202b4de97125799533 (patch) | |
tree | 582e030e1d6cf9149afaf5ecef2c234b7237d84d /src/mesa/main/shaderapi.c | |
parent | 5ae8c9c0ca650563ca357f6322bf8627a6b6093c (diff) |
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 <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |