Henri Verbeet : wined3d: Reference the bo in wined3d_texture_gl_download_data().

Alexandre Julliard julliard at winehq.org
Thu Dec 3 15:35:59 CST 2020


Module: wine
Branch: master
Commit: 736ac3eaf9705f254b97e7e83dfaa16883a95089
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=736ac3eaf9705f254b97e7e83dfaa16883a95089

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Dec  3 19:05:57 2020 +0330

wined3d: Reference the bo in wined3d_texture_gl_download_data().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/texture.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 43d75eb8ce9..6c9627d21f8 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -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");
     }
 }




More information about the wine-cvs mailing list