From: Brian Paul Date: Thu, 17 Apr 2008 17:13:05 +0000 (-0600) Subject: gallium: assert that we're not deleting the currently bound shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce454d2192918ae4b2535d0e76c68ebde3c4653f;p=mesa.git gallium: assert that we're not deleting the currently bound shader --- diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c index 4eefd1d61f5..2921066ce36 100644 --- a/src/gallium/drivers/softpipe/sp_state_fs.c +++ b/src/gallium/drivers/softpipe/sp_state_fs.c @@ -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 ); }