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.
This commit is contained in:
parent
f117327a3f
commit
56edb98d97
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue