projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5ffa9a
)
util: Plug leaks in util_destroy_gen_mipmap.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 2 Dec 2010 15:13:46 +0000
(15:13 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 2 Dec 2010 15:14:58 +0000
(15:14 +0000)
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 d4716bffe470009a76140aeff9392accfe46f931..ebf91c6701d516d4e777e635ae5d6ef607f351fc 100644
(file)
--- a/
src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/
src/gallium/auxiliary/util/u_gen_mipmap.c
@@
-1427,9
+1427,11
@@
util_destroy_gen_mipmap(struct gen_mipmap_state *ctx)
{
struct pipe_context *pipe = ctx->pipe;
- pipe->delete_vs_state(pipe, ctx->vs);
- pipe->delete_fs_state(pipe, ctx->fs2d);
pipe->delete_fs_state(pipe, ctx->fsCube);
+ pipe->delete_fs_state(pipe, ctx->fs3d);
+ pipe->delete_fs_state(pipe, ctx->fs2d);
+ pipe->delete_fs_state(pipe, ctx->fs1d);
+ pipe->delete_vs_state(pipe, ctx->vs);
pipe_resource_reference(&ctx->vbuf, NULL);