wined3d: Remove redundant surface location changes.
fb_copy_to_texture_direct and fb_copy_to_texture_hwstretch already invalidate everything but the RGB texture.
This commit is contained in:
parent
9331c791e8
commit
1631603986
|
@ -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);
|
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))
|
surface_evict_sysmem(dst_surface);
|
||||||
{
|
|
||||||
wined3d_resource_free_sysmem(&dst_surface->resource);
|
|
||||||
dst_surface->resource.allocatedMemory = NULL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dst_surface->flags &= ~SFLAG_INSYSMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue