mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
util: Don't destroy shaders null shaders
Fixes regression from a08e612fd8
This commit is contained in:
parent
a08e612fd8
commit
ca8a91ff7e
1 changed files with 4 additions and 2 deletions
|
|
@ -1451,8 +1451,10 @@ util_destroy_gen_mipmap(struct gen_mipmap_state *ctx)
|
|||
{
|
||||
struct pipe_context *pipe = ctx->pipe;
|
||||
|
||||
pipe->delete_fs_state(pipe, ctx->fs2da);
|
||||
pipe->delete_fs_state(pipe, ctx->fs1da);
|
||||
if (ctx->fs2da)
|
||||
pipe->delete_fs_state(pipe, ctx->fs2da);
|
||||
if (ctx->fs1da)
|
||||
pipe->delete_fs_state(pipe, ctx->fs1da);
|
||||
pipe->delete_fs_state(pipe, ctx->fsCube);
|
||||
pipe->delete_fs_state(pipe, ctx->fs3d);
|
||||
pipe->delete_fs_state(pipe, ctx->fs2d);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue