[PATCH 5/8] wined3d: Mark the map binding up to date in texture2d_sub_resource_add_dirty_region.

Stefan Dösinger stefan at codeweavers.com
Fri Jan 10 05:40:44 CST 2014


---
 dlls/wined3d/texture.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 0d6b974..f06db6d 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -735,8 +735,8 @@ static void texture2d_sub_resource_add_dirty_region(struct wined3d_resource *sub
 {
     struct wined3d_surface *surface = surface_from_resource(sub_resource);
 
-    surface_load_location(surface, SFLAG_INSYSMEM);
-    surface_invalidate_location(surface, ~SFLAG_INSYSMEM);
+    surface_load_location(surface, surface->map_binding);
+    surface_invalidate_location(surface, ~surface->map_binding);
 }
 
 static void texture2d_sub_resource_cleanup(struct wined3d_resource *sub_resource)
-- 
1.8.3.2




More information about the wine-patches mailing list