mesa: disable ProgramParameteri until it is needed
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 29 Oct 2012 17:37:50 +0000 (10:37 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 3 Nov 2012 17:54:41 +0000 (10:54 -0700)
ProgramParameteri will be required for ARB_geometry_shader4
or GLES3. Don't enable this function until either of those
is supported.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/shaderapi.c

index 4411e8acca7ef2bdf92c0e5f5e6ea2b9d2cf8923..9376b0f42ef19ac4b04c7b69d71f9558ace33f08 100644 (file)
@@ -1734,10 +1734,6 @@ _mesa_init_shader_dispatch(const struct gl_context *ctx,
       SET_GetAttribLocationARB(exec, _mesa_GetAttribLocationARB);
    }
 
-   if (_mesa_is_desktop_gl(ctx)) {
-      SET_ProgramParameteri(exec, _mesa_ProgramParameteriARB);
-   }
-
    if (ctx->API == API_OPENGL) {
       SET_UseShaderProgramEXT(exec, _mesa_UseShaderProgramEXT);
       SET_ActiveProgramEXT(exec, _mesa_ActiveProgramEXT);