Reset WndProc to default during Shutdown() if Overlay was hooked
@@ -384,6 +384,9 @@ Overlay::~Overlay()
{
if (m_initialized)
{
+ if (m_hWnd != nullptr)
+ SetWindowLongPtr(m_hWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(m_wndProc));
+
ImGui_ImplDX12_Shutdown();
ImGui_ImplWin32_Shutdown();
ImGui::DestroyContext();
