Henri Verbeet : wined3d: Use draw_binding in swapchain_gl_present().

Alexandre Julliard julliard at winehq.org
Thu Aug 25 13:00:11 CDT 2011


Module: wine
Branch: master
Commit: f0d8f2aa8914a41b17de3976f07db68fcfc670dd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f0d8f2aa8914a41b17de3976f07db68fcfc670dd

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Aug 24 22:08:45 2011 +0200

wined3d: Use draw_binding in swapchain_gl_present().

---

 dlls/wined3d/swapchain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 20c2323..fe1a510 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -614,7 +614,7 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
          * the texture / sysmem copy needs to be reloaded from the drawable
          */
         if (swapchain->presentParms.SwapEffect == WINED3DSWAPEFFECT_FLIP)
-            surface_modify_location(swapchain->back_buffers[0], SFLAG_INDRAWABLE, TRUE);
+            surface_modify_location(swapchain->back_buffers[0], swapchain->back_buffers[0]->draw_binding, TRUE);
     }
 
     if (fb->depth_stencil)




More information about the wine-cvs mailing list