Module: wine Branch: refs/heads/master Commit: 108688f96aef3c403beda7d752818a3e23f29552 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=108688f96aef3c403beda7d7...
Author: Stefan Dösinger stefan@codeweavers.com Date: Mon Apr 10 18:26:46 2006 +0200
wined3d: Don't do a logical AND on the swap effect.
---
dlls/wined3d/swapchain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 8f67220..f20198c 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -314,7 +314,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_Pre LEAVE_GL(); /* Although this is not strictly required, a simple demo showed this does occur on (at least non-debug) d3d */ - if (This->presentParms.SwapEffect & WINED3DSWAPEFFECT_DISCARD) { + if (This->presentParms.SwapEffect == WINED3DSWAPEFFECT_DISCARD) {
TRACE("Clearing\n");