Module: wine Branch: master Commit: c770d3f5732880f1f3c7adabb939487451e5e608 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c770d3f5732880f1f3c7adabb9...
Author: Stefan Dösinger stefan@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)