Skip to content

Commit

Permalink
win32: only deinint d3d imgui elements if they were initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
OV2 committed May 5, 2024
1 parent 51b6528 commit 77f86ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/CDirect3D.cpp
Expand Up @@ -159,7 +159,7 @@ bool CDirect3D::Initialize(HWND hWnd)

void CDirect3D::DeInitialize()
{
if (S9xImGuiRunning())
if (init_done && S9xImGuiRunning())
{
ImGui_ImplDX9_Shutdown();
S9xImGuiDeinit();
Expand Down

0 comments on commit 77f86ef

Please sign in to comment.