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

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

parent bc59d7e8
......@@ -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
* implement those in the CPU blitter at the moment. */
if ((dst_surface->flags & SFLAG_INSYSMEM)
&& (!src_surface || (src_surface->flags & SFLAG_INSYSMEM)))
if ((dst_surface->flags & dst_surface->map_binding)
&& (!src_surface || (src_surface->flags & src_surface->map_binding)))
{
if (scale)
TRACE("Not doing sysmem blit because of scaling.\n");
......
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