From 2bec23fd7c059e0d4c90652f12d8c0675a620602 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20D=C3=B6singer?= Date: Tue, 25 Dec 2007 22:57:01 +0100 Subject: [PATCH] wined3d: Fix a problem in BltOverride. --- dlls/wined3d/surface.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 30d65075617..f9df55e713a 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2974,13 +2974,11 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * } else if(dstSwapchain) { if(SrcSurface != myDevice->render_targets[0]) { ERR("Unexpected render target -> render target blit\n"); + return 0; } TRACE("Blit from active render target to a swapchain\n"); /* Handled with regular texture -> swapchain blit */ - } else if(srcSwapchain) { - if(This != (IWineD3DSurfaceImpl *) myDevice->render_targets[0]) { - ERR("Unexpected render target -> render target blit\n"); - } + } else if(srcSwapchain && This == (IWineD3DSurfaceImpl *) myDevice->render_targets[0]) { FIXME("Implement blit from a swapchain to the active render target\n"); return WINED3DERR_INVALIDCALL; } -- 2.11.4.GIT