projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f117327
)
Fix the warning.
author
Zack Rusin
<zack@tungstengraphics.com>
Mon, 17 Sep 2007 13:50:08 +0000
(09:50 -0400)
committer
Zack 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
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_state_blend.c
b/src/mesa/pipe/softpipe/sp_state_blend.c
index 57f2df79238e8270aba952367653294eec47991b..34da613f9dd9616b42dab0a5f05783094af9fa76 100644
(file)
--- 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);
}