wined3d: Add parentheses to a flag check.
This commit is contained in:
parent
7ba04e6132
commit
79e13d17be
|
@ -6402,7 +6402,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
|
|||
FIXME("Trying to set render target 0 to NULL\n");
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
}
|
||||
if (pRenderTarget && !((IWineD3DSurfaceImpl *)pRenderTarget)->resource.usage & WINED3DUSAGE_RENDERTARGET) {
|
||||
if (pRenderTarget && !(((IWineD3DSurfaceImpl *)pRenderTarget)->resource.usage & WINED3DUSAGE_RENDERTARGET)) {
|
||||
FIXME("(%p)Trying to set the render target to a surface(%p) that wasn't created with a usage of WINED3DUSAGE_RENDERTARGET\n",This ,pRenderTarget);
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue