Module: wine Branch: master Commit: 7856ac3c19d8f17be871aa86ec6f543cd1bc031b URL: http://source.winehq.org/git/wine.git/?a=commit;h=7856ac3c19d8f17be871aa86ec...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Sun Jun 7 11:33:48 2009 +0200
wined3d: Use & instead of && for bit test in IWineD3DDeviceImpl_CreateSurface().
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 16e4062..fe084ca 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1022,7 +1022,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, 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) + && !(Usage & WINED3DUSAGE_DEPTHSTENCIL ) && Lockable) WARN("Creating a surface with a POOL of DEFAULT with Lockable true, that doesn't specify DYNAMIC usage.\n"); break; default: