wined3d: Reference the bo in wined3d_texture_gl_upload_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:55 +03:30 committed by Alexandre Julliard
parent c1c129f3b8
commit 17e51124f9
1 changed files with 1 additions and 0 deletions

View File

@ -2481,6 +2481,7 @@ static void wined3d_texture_gl_upload_data(struct wined3d_context *context,
if (bo.buffer_object)
{
GL_EXTCALL(glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0));
wined3d_context_gl_reference_bo(context_gl, (struct wined3d_bo_gl *)bo.buffer_object);
checkGLcall("glBindBuffer");
}
}