[PATCH 04/10] wined3d: Use draw_binding in surface_unload().

Henri Verbeet hverbeet at codeweavers.com
Wed Aug 24 15:08:44 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 3edb48b..0572b47 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1866,7 +1866,7 @@ static void surface_unload(struct wined3d_resource *resource)
     {
         /* Load the surface into system memory */
         surface_load_location(surface, SFLAG_INSYSMEM, NULL);
-        surface_modify_location(surface, SFLAG_INDRAWABLE, FALSE);
+        surface_modify_location(surface, surface->draw_binding, FALSE);
     }
     surface_modify_location(surface, SFLAG_INTEXTURE, FALSE);
     surface_modify_location(surface, SFLAG_INSRGBTEX, FALSE);
-- 
1.7.3.4




More information about the wine-patches mailing list