mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
gallium: assert that we're not deleting the currently bound shader
This commit is contained in:
parent
f2b3f6cbdf
commit
ce454d2192
1 changed files with 3 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue