From 683b52ed92fde8f47dce36640225cd16aaf4009a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 24 Aug 2011 22:08:42 +0200 Subject: [PATCH] wined3d: Use draw_binding in surface_unmap(). --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 95f5052c428..604073d2be7 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