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

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


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

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

wined3d: Use draw_binding in surface_unmap().

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 95f5052..604073d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -984,7 +984,7 @@ static void surface_unmap(struct wined3d_surface *surface)
             surface->flags |= SFLAG_INSYSMEM;
         }
 
-        surface_load_location(surface, SFLAG_INDRAWABLE, fullsurface ? NULL : &surface->dirtyRect);
+        surface_load_location(surface, surface->draw_binding, fullsurface ? NULL : &surface->dirtyRect);
 
         /* Partial rectangle tracking is not commonly implemented, it is only
          * done for render targets. INSYSMEM was set before to tell




More information about the wine-cvs mailing list