From 1681322ffcc29173fc01fb76b999ade279946e87 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sun, 20 Dec 2020 07:08:33 +0100 Subject: [PATCH] (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. --- gfx/common/d3d12_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/common/d3d12_common.h b/gfx/common/d3d12_common.h index c97ba73f35..37c311a8fd 100644 --- a/gfx/common/d3d12_common.h +++ b/gfx/common/d3d12_common.h @@ -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) {