ImguiSystem: purge the surface list on shutdown

Move purging logic to shutdown.
This commit is contained in:
Kawe Mazidjatari 2025-01-08 20:56:06 +01:00
parent e9a2aea17c
commit 117e2d77e4
2 changed files with 2 additions and 3 deletions

View File

@ -91,6 +91,8 @@ void CImguiSystem::Shutdown()
m_initialized = false;
m_hasNewFrame = false;
m_surfaceList.Purge();
}
//-----------------------------------------------------------------------------

View File

@ -362,9 +362,6 @@ void DirectX_Shutdown()
if (ImguiSystem()->IsInitialized())
{
ImguiSystem()->Shutdown();
ImguiSystem()->RemoveSurface(&g_Browser);
ImguiSystem()->RemoveSurface(&g_Console);
}
}