mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
wined3d: Avoid duplicated code in wined3d_surface_blt.
This commit is contained in:
parent
d31048f0ae
commit
bff422f340
@ -6610,7 +6610,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
|
||||
if (dst_surface->flags & SFLAG_CONVERTED)
|
||||
{
|
||||
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)
|
||||
@ -6687,7 +6687,7 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
|
||||
else if (convert)
|
||||
TRACE("Not doing sysmem blit because of format conversion.\n");
|
||||
else
|
||||
return surface_cpu_blt(dst_surface, &dst_rect, src_surface, &src_rect, flags, fx, filter);
|
||||
goto cpu;
|
||||
}
|
||||
|
||||
if (flags & WINEDDBLT_COLORFILL)
|
||||
|
Loading…
Reference in New Issue
Block a user