diff options
author | Marek Olšák <[email protected]> | 2012-04-29 17:31:27 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-29 17:31:27 +0200 |
commit | 7622496d7b8fb4677a66d8843c078b3fa753f02f (patch) | |
tree | 622f041abe37d84d6232d7360640a76ca05e2355 /src/gallium | |
parent | 63ca2eda1374cd0754ed7e209508f2b80c38b488 (diff) |
u_blitter: fix resource leak
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 6a9141209bb..d0b9187d1f9 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -733,6 +733,7 @@ static void blitter_draw(struct blitter_context_priv *ctx, u_upload_unmap(ctx->upload); util_draw_vertex_buffer(ctx->base.pipe, NULL, buf, offset, PIPE_PRIM_TRIANGLE_FAN, 4, 2); + pipe_resource_reference(&buf, NULL); } static void blitter_draw_rectangle(struct blitter_context *blitter, |