From bff422f340f72aa73aca139eed5059562dcdd265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Tue, 8 Oct 2013 00:27:06 +0200 Subject: [PATCH] wined3d: Avoid duplicated code in wined3d_surface_blt. --- dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 9d7accd0589..cc5a7a58313 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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)