Module: wine Branch: refs/heads/master Commit: 63199ca02287408feb85053cb73a66db5f70772b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=63199ca02287408feb85053c...
Author: Alexandre Julliard julliard@winehq.org Date: Wed May 24 10:46:06 2006 +0200
wined3d: Fixed a couple of boolean comparisons against TRUE.
---
dlls/wined3d/device.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index b205c5c..cfc9435 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -731,7 +731,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Creat break; case WINED3DPOOL_DEFAULT: /*TODO: Create offscreen plain can cause this check to fail..., find out if it should */ if(!(Usage & WINED3DUSAGE_DYNAMIC) && !(Usage & WINED3DUSAGE_RENDERTARGET) - && !(Usage && WINED3DUSAGE_DEPTHSTENCIL ) && Lockable == TRUE) + && !(Usage && WINED3DUSAGE_DEPTHSTENCIL ) && Lockable) FIXME("Creating a surface with a POOL of DEFAULT with Locable true, that doesn't specify DYNAMIC usage.\n"); break; default: @@ -4701,7 +4701,7 @@ process_vertices_strided(IWineD3DDeviceI * a) D3DRS_CLIPPING is enabled * b) WINED3DVOP_CLIP is passed */ - if(This->stateBlock->renderState[WINED3DRS_CLIPPING] == TRUE) { + if(This->stateBlock->renderState[WINED3DRS_CLIPPING]) { static BOOL warned = FALSE; /* * The clipping code is not quite correct. Some things need @@ -6938,7 +6938,7 @@ #endif
IWineD3DSwapChain_Release((IWineD3DSwapChain *)swapchain); } - else if (pbuffer_support == TRUE && cfgs != NULL /* && some test to make sure that opengl supports pbuffers */) { + else if (pbuffer_support && cfgs != NULL /* && some test to make sure that opengl supports pbuffers */) {
/** ******************************************************************** * This is a quickly hacked out implementation of offscreen textures.