summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-11 18:19:37 -0700
committerBrian Paul <[email protected]>2012-01-11 18:22:17 -0700
commit459a44460e4d31d69d7ff04c1000917ca7870ff3 (patch)
tree57a4e7aeee9e93bf320b88af7df0a5dc38834b23 /src/mesa/main/state.c
parentfe1b38960b44135f6557a1e7a9fb5adc66d0edbb (diff)
mesa: remove const qualifier from fProg to silence warning
The args to _mesa_reference_shader_program() can't be const.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c2
1 files changed, 1 insertions, 1 deletions
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;