mirror of https://github.com/snes9xgit/snes9x.git
win32: only deinint d3d imgui elements if they were initialized
This commit is contained in:
parent
51b6528224
commit
77f86ef4b6
|
@ -159,7 +159,7 @@ bool CDirect3D::Initialize(HWND hWnd)
|
|||
|
||||
void CDirect3D::DeInitialize()
|
||||
{
|
||||
if (S9xImGuiRunning())
|
||||
if (init_done && S9xImGuiRunning())
|
||||
{
|
||||
ImGui_ImplDX9_Shutdown();
|
||||
S9xImGuiDeinit();
|
||||
|
|
Loading…
Reference in New Issue