Skip to content

Commit

Permalink
D3D11: fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhdanNV committed Dec 2, 2024
1 parent 205cf05 commit 6009a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/D3D11/FenceD3D11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ NRI_INLINE void FenceD3D11::Wait(uint64_t value) {
;
} else if (m_Fence->GetCompletedValue() < value) {
HRESULT hr = m_Fence->SetEventOnCompletion(value, m_Event);
RETURN_ON_FAILURE(&m_Device, hr == S_OK, ReturnVoid(), "ID3D12Fence::SetEventOnCompletion() failed!");
RETURN_ON_FAILURE(&m_Device, hr == S_OK, ReturnVoid(), "ID3D11Fence::SetEventOnCompletion() failed!");

uint32_t result = WaitForSingleObjectEx(m_Event, TIMEOUT_FENCE, TRUE);
RETURN_ON_FAILURE(&m_Device, result == WAIT_OBJECT_0, ReturnVoid(), "WaitForSingleObjectEx() failed!");
Expand Down

0 comments on commit 6009a0f

Please sign in to comment.