mesa: remove const qualifier from fProg to silence warning
authorBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 01:19:37 +0000 (18:19 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 01:22:17 +0000 (18:22 -0700)
The args to _mesa_reference_shader_program() can't be const.

src/mesa/main/state.c

index 56bb797e6255bcd744dabe008b4905e96ce6526d..b910543e2cfa4ca14ee5f341b6207295715dd24e 100644 (file)
@@ -228,7 +228,7 @@ update_program(struct gl_context *ctx)
 {
    const struct gl_shader_program *vsProg = ctx->Shader.CurrentVertexProgram;
    const struct gl_shader_program *gsProg = ctx->Shader.CurrentGeometryProgram;
-   const struct gl_shader_program *fsProg = ctx->Shader.CurrentFragmentProgram;
+   struct gl_shader_program *fsProg = ctx->Shader.CurrentFragmentProgram;
    const struct gl_vertex_program *prevVP = ctx->VertexProgram._Current;
    const struct gl_fragment_program *prevFP = ctx->FragmentProgram._Current;
    const struct gl_geometry_program *prevGP = ctx->GeometryProgram._Current;