Fix logical condition in dlls/wined3d/device.c
Gerald Pfeifer
gerald at pfeifer.com
Sun Jun 7 04:33:48 CDT 2009
ChangeLog:
Use & instead of && for bit test in IWineD3DDeviceImpl_CreateSurface().
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index f1dd938..b5b792c 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:
More information about the wine-patches
mailing list