Henri Verbeet : wined3d: Remove a redundant compare in IWineD3DSurfaceImpl_BltOverride().
Alexandre Julliard
julliard at winehq.org
Fri Sep 2 13:13:36 CDT 2011
Module: wine
Branch: master
Commit: 179d6f8087ba2b052a2d34c9c1ffc9fd6a710c48
URL: http://source.winehq.org/git/wine.git/?a=commit;h=179d6f8087ba2b052a2d34c9c1ffc9fd6a710c48
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Sep 1 20:20:54 2011 +0200
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.
---
dlls/wined3d/surface.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index a06030b..619bc92 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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])
{
More information about the wine-cvs
mailing list