From 56edb98d975041cca2e4a3712126b151d80a045a Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 17 Sep 2007 09:50:08 -0400 Subject: 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. --- src/mesa/pipe/softpipe/sp_state_blend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/pipe/softpipe/sp_state_blend.c b/src/mesa/pipe/softpipe/sp_state_blend.c index 57f2df7923..34da613f9d 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); } -- cgit v1.2.3