wined3d: Use the map binding to optimize sysmem->sysmem blits.

This commit is contained in:
Stefan Dösinger 2014-01-13 15:21:00 +01:00 committed by Alexandre Julliard
parent bc59d7e830
commit 28bfc20589
1 changed files with 2 additions and 2 deletions

View File

@ -6216,8 +6216,8 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
{ {
/* In principle this would apply to depth blits as well, but we don't /* In principle this would apply to depth blits as well, but we don't
* implement those in the CPU blitter at the moment. */ * implement those in the CPU blitter at the moment. */
if ((dst_surface->flags & SFLAG_INSYSMEM) if ((dst_surface->flags & dst_surface->map_binding)
&& (!src_surface || (src_surface->flags & SFLAG_INSYSMEM))) && (!src_surface || (src_surface->flags & src_surface->map_binding)))
{ {
if (scale) if (scale)
TRACE("Not doing sysmem blit because of scaling.\n"); TRACE("Not doing sysmem blit because of scaling.\n");