gallium: assert that we're not deleting the currently bound shader

This commit is contained in:
Brian Paul
2008-04-17 11:13:05 -06:00
parent f2b3f6cbdf
commit ce454d2192

View File

@@ -82,7 +82,10 @@ 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);
state->delete( state );
}