[PATCH 02/10] wined3d: Use draw_binding in surface_unmap().

Henri Verbeet hverbeet at codeweavers.com
Wed Aug 24 15:08:42 CDT 2011


---
 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
-- 
1.7.3.4




More information about the wine-patches mailing list