summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-17 11:13:05 -0600
committerBrian Paul <[email protected]>2008-04-17 11:13:49 -0600
commitce454d2192918ae4b2535d0e76c68ebde3c4653f (patch)
tree2da6b66420e0755a1e9649ac52947ccbac1a449d /src/gallium/drivers
parentf2b3f6cbdfc4799a0f742c06d2ce0755582c50c4 (diff)
gallium: assert that we're not deleting the currently bound shader
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_fs.c3
1 files changed, 3 insertions, 0 deletions
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 );
}