CommonHostInterface: Release save state selector before display

This can have GPU objects, so needs to be released first.
This commit is contained in:
Connor McLaughlin 2020-06-18 21:44:10 +10:00
parent bd164d2735
commit 63cc4ab197
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ void CommonHostInterface::Shutdown()
{ {
HostInterface::Shutdown(); HostInterface::Shutdown();
// this has gpu objects so it has to come first
m_save_state_selector_ui.reset();
#ifdef WITH_DISCORD_PRESENCE #ifdef WITH_DISCORD_PRESENCE
ShutdownDiscordPresence(); ShutdownDiscordPresence();
#endif #endif