wined3d: Remove redundant surface location changes.

fb_copy_to_texture_direct and fb_copy_to_texture_hwstretch already
invalidate everything but the RGB texture.
oldstable
Stefan Dösinger 2013-10-08 00:27:10 +02:00 committed by Alexandre Julliard
parent 9331c791e8
commit 1631603986
1 changed files with 1 additions and 9 deletions

View File

@ -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;
}