From ea4c3d5d5d3df37391a349542ce82b5a4f56d470 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 24 Sep 2013 09:48:45 +0200 Subject: [PATCH] wined3d: Get rid of the broken render target check for surface_blt_special(). This used to work out in practice because swapchain surfaces were always considered render targets, but that's no longer true. We can just remove the check, because surface_blt_special() already contains a proper check itself anyway. --- dlls/wined3d/surface.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c61f58966a2..9d7accd0589 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -6777,15 +6777,9 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC } fallback: - /* Special cases for render targets. */ - if ((dst_surface->resource.usage & WINED3DUSAGE_RENDERTARGET) - || (src_surface && (src_surface->resource.usage & WINED3DUSAGE_RENDERTARGET))) - { - if (SUCCEEDED(surface_blt_special(dst_surface, &dst_rect, - src_surface, &src_rect, flags, fx, filter))) - return WINED3D_OK; - } + if (SUCCEEDED(surface_blt_special(dst_surface, &dst_rect, src_surface, &src_rect, flags, fx, filter))) + return WINED3D_OK; cpu: