win32: only deinint d3d imgui elements if they were initialized

This commit is contained in:
OV2 2024-05-05 19:25:47 +02:00
parent 51b6528224
commit 77f86ef4b6
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ bool CDirect3D::Initialize(HWND hWnd)
void CDirect3D::DeInitialize() void CDirect3D::DeInitialize()
{ {
if (S9xImGuiRunning()) if (init_done && S9xImGuiRunning())
{ {
ImGui_ImplDX9_Shutdown(); ImGui_ImplDX9_Shutdown();
S9xImGuiDeinit(); S9xImGuiDeinit();