diff options
author | Yevhenii Kolesnikov <[email protected]> | 2019-07-09 15:11:15 +0300 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-07-17 08:14:46 +0000 |
commit | cffebf6f57d4dca7df742c808d4759a1da73cc33 (patch) | |
tree | 23be95a46cbdebb93cc708c5287ce78716b323ba /src | |
parent | 3a27a5b98937bd11b19c5d848120236d8d84ff75 (diff) |
meta: leaking of BO with DrawPixels
ctx->Unpack.BufferObj wasn't unreferenced.
Fixes: d492e7b0171 (meta: Fix invalid PBO access from DrawPixels when
trying to just alloc.)
CC: Eric Anholt <[email protected]>
Signed-off-by: Yevhenii Kolesnikov <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 3853871ef80d3dcd357b72056f2ce709706ac11c)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 725584d5ba3..0a8b9bb885d 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1468,6 +1468,8 @@ _mesa_meta_setup_drawpix_texture(struct gl_context *ctx, /* load image */ _mesa_TexSubImage2D(tex->Target, 0, 0, 0, width, height, format, type, pixels); + + _mesa_reference_buffer_object(ctx, &save_unpack_obj, NULL); } } else { |