libs/vkd3d: Accept D3D12_ROOT_SIGNATURE_DESC directly only when all bits of "bytecode_length" are set.

This commit is contained in:
Józef Kucia 2016-10-10 11:22:50 +02:00
parent f530155ff1
commit a22b594c0a
2 changed files with 2 additions and 2 deletions

View File

@ -719,7 +719,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateRootSignature(ID3D12Device *
if (node_mask && node_mask != 1)
FIXME("Ignoring node mask 0x%08x.\n", node_mask);
if (bytecode_length != ~0u)
if (bytecode_length != ~(SIZE_T)0)
{
FIXME("Root signature byte code not supported.\n");
return E_NOTIMPL;

View File

@ -105,7 +105,7 @@ static HRESULT create_root_signature_(unsigned int line, ID3D12Device *device,
static HRESULT create_root_signature_(unsigned int line, ID3D12Device *device,
const D3D12_ROOT_SIGNATURE_DESC *desc, ID3D12RootSignature **root_signature)
{
return ID3D12Device_CreateRootSignature(device, 0, desc, ~0u,
return ID3D12Device_CreateRootSignature(device, 0, desc, ~(SIZE_T)0,
&IID_ID3D12RootSignature, (void **)root_signature);
}
#endif