[PATCH 1/5] wined3d: Use draw_binding for the surface_modify_location() call in surface_unmap() as well.

Henri Verbeet hverbeet at codeweavers.com
Wed Sep 7 13:21:57 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 633517d..21b4f9a 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1000,7 +1000,7 @@ static void surface_unmap(struct wined3d_surface *surface)
          * date because only a subrectangle was read in Map(). */
         if (!fullsurface)
         {
-            surface_modify_location(surface, SFLAG_INDRAWABLE, TRUE);
+            surface_modify_location(surface, surface->draw_binding, TRUE);
             surface_evict_sysmem(surface);
         }
 
-- 
1.7.3.4




More information about the wine-patches mailing list