=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Mark the map binding up to date in texture2d_sub_resource_add_dirty_region.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 13:22:47 CST 2014


Module: wine
Branch: master
Commit: c770d3f5732880f1f3c7adabb939487451e5e608
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c770d3f5732880f1f3c7adabb939487451e5e608

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Jan 10 12:40:44 2014 +0100

wined3d: Mark the map binding up to date in texture2d_sub_resource_add_dirty_region.

---

 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)




More information about the wine-cvs mailing list