projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08e612
)
util: Don't destroy shaders null shaders
author
Jakob Bornecrantz
<jakob@vmware.com>
Sat, 26 Feb 2011 01:32:22 +0000
(
02:32
+0100)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Sat, 26 Feb 2011 01:32:22 +0000
(
02:32
+0100)
Fixes regression from
a08e612fd8e7ca2ac2fef8961e56e5b094033717
src/gallium/auxiliary/util/u_gen_mipmap.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_gen_mipmap.c
b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 6fba6000ba889a3f2a497ced79f9f2906a093c81..4f1b0e71934a6d16286e9f165345a57979da8275 100644
(file)
--- a/
src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/
src/gallium/auxiliary/util/u_gen_mipmap.c
@@
-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);