(D3D12) fix the D3D12GetCompletedValue function wrapper.

- a function wrapper shouldn't contain any NULL checks, and it should
return the original UINT64 value, not a boolean.
This commit is contained in:
aliaspider 2020-12-20 07:08:33 +01:00
parent b6544a71d7
commit 1681322ffc

View File

@ -159,7 +159,7 @@ static INLINE HRESULT D3D12ResetCommandAllocator(D3D12CommandAllocator command_a
static INLINE ULONG D3D12ReleaseFence(D3D12Fence fence) { return fence->lpVtbl->Release(fence); }
static INLINE UINT64 D3D12GetCompletedValue(D3D12Fence fence)
{
return fence && fence->lpVtbl->GetCompletedValue(fence);
return fence->lpVtbl->GetCompletedValue(fence);
}
static INLINE HRESULT D3D12SetEventOnCompletion(D3D12Fence fence, UINT64 value, HANDLE h_event)
{