Fix the warning.
authorZack Rusin <zack@tungstengraphics.com>
Mon, 17 Sep 2007 13:50:08 +0000 (09:50 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Tue, 18 Sep 2007 10:31:22 +0000 (06:31 -0400)
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

index 57f2df7..34da613 100644 (file)
@@ -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);
 }