mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Don't free objects with shutdown
Some games don't like to free the DX objects after the game has shut down.
This commit is contained in:
parent
4db2b6528c
commit
42a22dd4bb
3 changed files with 36 additions and 3 deletions
|
|
@ -194,7 +194,17 @@ DX10_Hook::~DX10_Hook()
|
|||
{
|
||||
PRINT_DEBUG("DX10 Hook removed\n");
|
||||
|
||||
resetRenderState();
|
||||
if (initialized)
|
||||
{
|
||||
mainRenderTargetView->Release();
|
||||
|
||||
//ImGui_ImplDX10_Shutdown();
|
||||
ImGui_ImplDX10_InvalidateDeviceObjects();
|
||||
Windows_Hook::Inst().resetRenderState();
|
||||
ImGui::DestroyContext();
|
||||
|
||||
initialized = false;
|
||||
}
|
||||
|
||||
FreeLibrary(reinterpret_cast<HMODULE>(_library));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue