aboutsummaryrefslogtreecommitdiffstats
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:24:34 -0700
commit9489ae8938b74551913337876656bcb9178a8905 (patch)
tree57a4e7aeee9e93bf320b88af7df0a5dc38834b23 /src/mesa/main/state.c
parentb8af8b83cf3d42dd286c8de062ab9f5fee84d397 (diff)
mesa: remove const qualifier from fProg to silence warning
The args to _mesa_reference_shader_program() can't be const. (cherry picked from commit 459a44460e4d31d69d7ff04c1000917ca7870ff3)
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;