summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-17 09:50:08 -0400
committerZack Rusin <[email protected]>2007-09-18 06:31:22 -0400
commit56edb98d975041cca2e4a3712126b151d80a045a (patch)
tree5e565d17be0c84755e9e84af46b6e2a569ded48f /src/mesa
parentf117327a3f246713abfd4dc4320d4a1a7f1b811a (diff)
Fix the warning.
The const is there to enforce the immutable state of the object, which is in reality owned by the pipe so just cast away the constness.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_blend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_blend.c b/src/mesa/pipe/softpipe/sp_state_blend.c
index 57f2df79238..34da613f9dd 100644
--- a/src/mesa/pipe/softpipe/sp_state_blend.c
+++ b/src/mesa/pipe/softpipe/sp_state_blend.c
@@ -53,7 +53,7 @@ void softpipe_bind_blend_state( struct pipe_context *pipe,
void softpipe_delete_blend_state(struct pipe_context *pipe,
const struct pipe_blend_state *blend )
{
- free(blend);
+ free((struct pipe_blend_state *)blend);
}