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

wined3d: Avoid duplicated code in wined3d_surface_blt.

parent d31048f0
...@@ -6610,7 +6610,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC ...@@ -6610,7 +6610,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
if (dst_surface->flags & SFLAG_CONVERTED) if (dst_surface->flags & SFLAG_CONVERTED)
{ {
WARN_(d3d_perf)("Converted surface, using CPU blit.\n"); WARN_(d3d_perf)("Converted surface, using CPU blit.\n");
return surface_cpu_blt(dst_surface, &dst_rect, src_surface, &src_rect, flags, fx, filter); goto cpu;
} }
if (flags & ~simple_blit) if (flags & ~simple_blit)
...@@ -6687,7 +6687,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC ...@@ -6687,7 +6687,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
else if (convert) else if (convert)
TRACE("Not doing sysmem blit because of format conversion.\n"); TRACE("Not doing sysmem blit because of format conversion.\n");
else else
return surface_cpu_blt(dst_surface, &dst_rect, src_surface, &src_rect, flags, fx, filter); goto cpu;
} }
if (flags & WINEDDBLT_COLORFILL) if (flags & WINEDDBLT_COLORFILL)
......
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