mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
meta: leaking of BO with DrawPixels
ctx->Unpack.BufferObj wasn't unreferenced. Fixes:d492e7b017(meta: Fix invalid PBO access from DrawPixels when trying to just alloc.) CC: Eric Anholt <eric@anholt.net> Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit3853871ef8)
This commit is contained in:
parent
3a27a5b989
commit
cffebf6f57
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue