mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
Fixed game shutdown hang.
Should watch the other implementations if they need the same treat or not.
This commit is contained in:
parent
dda1e3210c
commit
c293c1ae05
@ -182,7 +182,11 @@ DX9_Hook::~DX9_Hook()
|
||||
PRINT_DEBUG("DX9 Hook removed\n");
|
||||
|
||||
if (_hooked)
|
||||
resetRenderState();
|
||||
{
|
||||
ImGui_ImplDX9_InvalidateDeviceObjects();
|
||||
ImGui_ImplWin32_Shutdown();
|
||||
ImGui::DestroyContext();
|
||||
}
|
||||
|
||||
hook = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user