Zebediah Figura : wined3d: Always set GL_PIXEL_PACK_BUFFER binding in texture2d_read_from_framebuffer().
Alexandre Julliard
julliard at winehq.org
Tue Nov 30 16:18:51 CST 2021
Module: wine
Branch: master
Commit: d3d9785483dd0735de2b93f3376d79b1b1d9b0b6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d3d9785483dd0735de2b93f3376d79b1b1d9b0b6
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Nov 29 18:13:42 2021 -0600
wined3d: Always set GL_PIXEL_PACK_BUFFER binding in texture2d_read_from_framebuffer().
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/surface.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 060ac84b8b7..9a5b4cbff72 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -475,6 +475,11 @@ void texture2d_read_from_framebuffer(struct wined3d_texture *texture, unsigned i
checkGLcall("glBindBuffer");
offset += data.buffer_object->buffer_offset;
}
+ else
+ {
+ GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
+ checkGLcall("glBindBuffer");
+ }
level = sub_resource_idx % texture->level_count;
wined3d_texture_get_pitch(texture, level, &row_pitch, &slice_pitch);
More information about the wine-cvs
mailing list