From e674cd96e50e3f7e11fa7cba3fa4c4e426cb1256 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Thu, 1 Aug 2019 19:07:19 +0200 Subject: [PATCH] DX9 Hook info comment --- overlay_experimental/DX9_Hook.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay_experimental/DX9_Hook.cpp b/overlay_experimental/DX9_Hook.cpp index bc7b315..9fdd5bb 100644 --- a/overlay_experimental/DX9_Hook.cpp +++ b/overlay_experimental/DX9_Hook.cpp @@ -183,6 +183,8 @@ DX9_Hook::~DX9_Hook() if (_hooked) { + //ImGui_ImplDX9_Shutdown(); This makes some games hang when Releasing the D3D9 device (pDevice->Release()) + // maybe because D3D is already shut down when we try to free the device? ImGui_ImplDX9_InvalidateDeviceObjects(); ImGui_ImplWin32_Shutdown(); ImGui::DestroyContext();