1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

Fixed game shutdown hang.

Should watch the other implementations if they need the same treat or not.
This commit is contained in:
Nemirtingas 2019-08-01 17:05:41 +02:00
parent dda1e3210c
commit c293c1ae05

View file

@ -182,7 +182,11 @@ DX9_Hook::~DX9_Hook()
PRINT_DEBUG("DX9 Hook removed\n"); PRINT_DEBUG("DX9 Hook removed\n");
if (_hooked) if (_hooked)
resetRenderState(); {
ImGui_ImplDX9_InvalidateDeviceObjects();
ImGui_ImplWin32_Shutdown();
ImGui::DestroyContext();
}
hook = nullptr; hook = nullptr;
} }