wined3d: Fix regression of colorfill and texture to swapchain codepaths in BltOverride.

This commit is contained in:
Alexander Dorofeyev 2007-12-30 18:04:27 -08:00 committed by Alexandre Julliard
parent 18143f693b
commit 7165d7268b
1 changed files with 3 additions and 5 deletions

View File

@ -2972,12 +2972,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
FIXME("Implement hardware blit between two different swapchains\n");
return WINED3DERR_INVALIDCALL;
} else if(dstSwapchain) {
if(SrcSurface != myDevice->render_targets[0]) {
ERR("Unexpected render target -> render target blit\n");
return 0;
if(SrcSurface == myDevice->render_targets[0]) {
TRACE("Blit from active render target to a swapchain\n");
/* Handled with regular texture -> swapchain blit */
}
TRACE("Blit from active render target to a swapchain\n");
/* Handled with regular texture -> swapchain blit */
} else if(srcSwapchain && This == (IWineD3DSurfaceImpl *) myDevice->render_targets[0]) {
FIXME("Implement blit from a swapchain to the active render target\n");
return WINED3DERR_INVALIDCALL;