wined3d: Get rid of some redundant else statements in IWineD3DSurfaceImpl_BltOverride().

This commit is contained in:
Henri Verbeet 2011-09-01 20:20:55 +02:00 committed by Alexandre Julliard
parent 179d6f8087
commit ca69a23d52
1 changed files with 10 additions and 3 deletions

View File

@ -5411,14 +5411,21 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(struct wined3d_surface *dst_surfa
TRACE("Unsupported blit between buffers on the same swapchain\n");
return WINED3DERR_INVALIDCALL;
} else if(dstSwapchain && dstSwapchain == srcSwapchain) {
}
if (dstSwapchain && dstSwapchain == srcSwapchain)
{
FIXME("Implement hardware blit between two surfaces on the same swapchain\n");
return WINED3DERR_INVALIDCALL;
} else if(dstSwapchain && srcSwapchain) {
}
if (dstSwapchain && srcSwapchain)
{
FIXME("Implement hardware blit between two different swapchains\n");
return WINED3DERR_INVALIDCALL;
}
else if (dstSwapchain)
if (dstSwapchain)
{
/* Handled with regular texture -> swapchain blit */
if (src_surface == device->fb.render_targets[0])