From: Zack Rusin Date: Mon, 17 Sep 2007 13:50:08 +0000 (-0400) Subject: Fix the warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56edb98d975041cca2e4a3712126b151d80a045a;p=mesa.git 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. --- 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); }