[PATCH 3/4] wined3d: Always set GL_PIXEL_UNPACK_BINDING in wined3d_texture_gl_allocate_mutable_storage().

Zebediah Figura zfigura at codeweavers.com
Mon Nov 29 18:13:43 CST 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/wined3d/texture.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index d4c7082912b..26c35fd84dc 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -947,6 +947,9 @@ static void wined3d_texture_gl_allocate_mutable_storage(struct wined3d_texture_g
             TRACE("texture_gl %p, layer %u, level %u, target %#x, width %u, height %u.\n",
                     texture_gl, layer, level, target, width, height);
 
+            GL_EXTCALL(glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0));
+            checkGLcall("glBindBuffer");
+
             if (target == GL_TEXTURE_3D || target == GL_TEXTURE_2D_ARRAY)
             {
                 depth = wined3d_texture_get_level_depth(&texture_gl->t, level);
-- 
2.32.0




More information about the wine-devel mailing list