From 7856ac3c19d8f17be871aa86ec6f543cd1bc031b Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 7 Jun 2009 11:33:48 +0200 Subject: [PATCH] wined3d: Use & instead of && for bit test in IWineD3DDeviceImpl_CreateSurface(). --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 16e40625103..fe084cacc05 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: -- 2.11.4.GIT