diff options
-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); |