summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorYevhenii Kolesnikov <[email protected]>2019-07-09 15:11:15 +0300
committerEric Anholt <[email protected]>2019-07-16 20:06:56 +0000
commit3853871ef80d3dcd357b72056f2ce709706ac11c (patch)
tree48944372bf8d8c652a3162896494c6cd0165f259 /src/mesa
parente8360a64e43f2f254addd6dc414df018f6286a92 (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]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/common/meta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 18ed6e7f168..65362935320 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 {