softpipe: fix warning

This commit is contained in:
Keith Whitwell 2008-05-01 18:49:07 +01:00
parent 0000792a20
commit f30285e99c

View file

@ -82,10 +82,9 @@ softpipe_bind_fs_state(struct pipe_context *pipe, void *fs)
void
softpipe_delete_fs_state(struct pipe_context *pipe, void *fs)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
struct sp_fragment_shader *state = fs;
assert(fs != softpipe->fs);
assert(fs != softpipe_context(pipe)->fs);
state->delete( state );
}