wined3d: Always set GL_PIXEL_UNPACK_BUFFER binding in wined3d_texture_gl_allocate_mutable_storage().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-11-30 17:55:17 -06:00 committed by Alexandre Julliard
parent 84794b40dd
commit 21481acaf3
1 changed files with 3 additions and 0 deletions

View File

@ -930,6 +930,9 @@ static void wined3d_texture_gl_allocate_mutable_storage(struct wined3d_texture_g
else
layer_count = texture_gl->t.layer_count;
GL_EXTCALL(glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0));
checkGLcall("glBindBuffer");
for (layer = 0; layer < layer_count; ++layer)
{
target = wined3d_texture_gl_get_sub_resource_target(texture_gl, layer * level_count);