wined3d: Remove a redundant compare in IWineD3DSurfaceImpl_BltOverride().

If the source surface isn't on the destination swapchain it can't be a
backbuffer there either.
This commit is contained in:
Henri Verbeet 2011-09-01 20:20:54 +02:00 committed by Alexandre Julliard
parent cc10600b52
commit 179d6f8087
1 changed files with 3 additions and 2 deletions

View File

@ -5312,8 +5312,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(struct wined3d_surface *dst_surfa
return WINED3DERR_INVALIDCALL;
}
/* The only case where both surfaces on a swapchain are supported is a back buffer -> front buffer blit on the same swapchain */
if (dstSwapchain && dstSwapchain == srcSwapchain && dstSwapchain->back_buffers
/* The only case where both surfaces on a swapchain are supported is a
* back buffer -> front buffer blit on the same swapchain. */
if (dstSwapchain && dstSwapchain->back_buffers
&& dst_surface == dstSwapchain->front_buffer
&& src_surface == dstSwapchain->back_buffers[0])
{