From: Brian Paul Date: Thu, 12 Jan 2012 01:19:37 +0000 (-0700) Subject: mesa: remove const qualifier from fProg to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=459a44460e4d31d69d7ff04c1000917ca7870ff3;p=mesa.git mesa: remove const qualifier from fProg to silence warning The args to _mesa_reference_shader_program() can't be const. --- diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 56bb797e625..b910543e2cf 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -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;