[PATCH 5/5] wined3d: Remove redundant surface location changes.

Stefan Dösinger stefan at codeweavers.com
Mon Oct 7 17:27:10 CDT 2013


fb_copy_to_texture_direct and fb_copy_to_texture_hwstretch already
invalidate everything but the RGB texture.
---
 dlls/wined3d/surface.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index eb8ca7e..a8a7236 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4984,15 +4984,7 @@ static HRESULT surface_blt_special(struct wined3d_surface *dst_surface, const RE
             fb_copy_to_texture_hwstretch(dst_surface, src_surface, src_rect, dst_rect, filter);
         }
 
-        if (!dst_surface->resource.map_count && !(dst_surface->flags & SFLAG_DONOTFREE))
-        {
-            wined3d_resource_free_sysmem(&dst_surface->resource);
-            dst_surface->resource.allocatedMemory = NULL;
-        }
-        else
-        {
-            dst_surface->flags &= ~SFLAG_INSYSMEM;
-        }
+        surface_evict_sysmem(dst_surface);
 
         return WINED3D_OK;
     }
-- 
1.8.1.5




More information about the wine-patches mailing list