mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ImguiSystem: purge the surface list on shutdown
Move purging logic to shutdown.
This commit is contained in:
parent
e9a2aea17c
commit
117e2d77e4
@ -91,6 +91,8 @@ void CImguiSystem::Shutdown()
|
||||
|
||||
m_initialized = false;
|
||||
m_hasNewFrame = false;
|
||||
|
||||
m_surfaceList.Purge();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -362,9 +362,6 @@ void DirectX_Shutdown()
|
||||
if (ImguiSystem()->IsInitialized())
|
||||
{
|
||||
ImguiSystem()->Shutdown();
|
||||
|
||||
ImguiSystem()->RemoveSurface(&g_Browser);
|
||||
ImguiSystem()->RemoveSurface(&g_Console);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user