Module: wine Branch: master Commit: 1631603986d55f4e0382a0f8cf7a2d0e79f383fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=1631603986d55f4e0382a0f8cf...
Author: Stefan Dösinger stefan@codeweavers.com Date: Tue Oct 8 00:27:10 2013 +0200
wined3d: Remove redundant surface location changes.
fb_copy_to_texture_direct and fb_copy_to_texture_hwstretch already invalidate everything but the RGB texture.
---
dlls/wined3d/surface.c | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 52eac16..860296b 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; }