From: Paul Berry Date: Fri, 19 Oct 2012 13:09:04 +0000 (-0700) Subject: _mesa_create_exec_table(): deprecate ProgramStringARB. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5863e3d16e055f63f28e49fdec3b4a3d1c73fe62;p=mesa.git _mesa_create_exec_table(): deprecate ProgramStringARB. This function is only useful for the ARB_{vertex,fragment}_program extensions, which we don't expose in core contexts. Reviewed-by: Brian Paul Reviewed-by: Jordan Justen Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 995849612ca..7a000e777db 100644 --- a/src/mesa/main/api_exec.c +++ b/src/mesa/main/api_exec.c @@ -580,13 +580,15 @@ _mesa_create_exec_table(struct gl_context *ctx) SET_EnableVertexAttribArrayARB(exec, _mesa_EnableVertexAttribArrayARB); SET_DisableVertexAttribArrayARB(exec, _mesa_DisableVertexAttribArrayARB); if (ctx->API != API_OPENGLES2) { - SET_ProgramStringARB(exec, _mesa_ProgramStringARB); /* glBindProgramARB aliases glBindProgramNV */ /* glDeleteProgramsARB aliases glDeleteProgramsNV */ /* glGenProgramsARB aliases glGenProgramsNV */ /* glIsProgramARB aliases glIsProgramNV */ SET_GetVertexAttribdvARB(exec, _mesa_GetVertexAttribdvARB); } + if (ctx->API == API_OPENGL) { + SET_ProgramStringARB(exec, _mesa_ProgramStringARB); + } SET_GetVertexAttribfvARB(exec, _mesa_GetVertexAttribfvARB); SET_GetVertexAttribivARB(exec, _mesa_GetVertexAttribivARB);