wined3d: Reference the bo in wined3d_texture_gl_download_data().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-12-03 18:47:57 +03:30 committed by Alexandre Julliard
parent 6f8c918d86
commit 736ac3eaf9
1 changed files with 1 additions and 0 deletions

View File

@ -2841,6 +2841,7 @@ static void wined3d_texture_gl_download_data(struct wined3d_context *context,
if (dst_bo)
{
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
wined3d_context_gl_reference_bo(context_gl, dst_bo);
checkGLcall("glBindBuffer");
}
}