Commit 16316039 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Remove redundant surface location changes.

fb_copy_to_texture_direct and fb_copy_to_texture_hwstretch already invalidate everything but the RGB texture.
parent 9331c791
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment