diff --git a/idd/LGIdd/CIndirectMonitorContext.cpp b/idd/LGIdd/CIndirectMonitorContext.cpp index 07a21c6d..b264ce73 100644 --- a/idd/LGIdd/CIndirectMonitorContext.cpp +++ b/idd/LGIdd/CIndirectMonitorContext.cpp @@ -102,6 +102,9 @@ void CIndirectMonitorContext::UnassignSwapChain() m_swapChain.reset(); m_dx11Device.reset(); m_dx12Device.reset(); + + ResetEvent(m_terminateEvent .Get()); + ResetEvent(m_cursorDataEvent.Get()); } DWORD CALLBACK CIndirectMonitorContext::_CursorThread(LPVOID arg)