From 63cc4ab1973906427d2068f2fc52f8c75df51bb3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 18 Jun 2020 21:44:10 +1000 Subject: [PATCH] CommonHostInterface: Release save state selector before display This can have GPU objects, so needs to be released first. --- src/frontend-common/common_host_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 393b7fde6..e627cf209 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -95,6 +95,9 @@ void CommonHostInterface::Shutdown() { HostInterface::Shutdown(); + // this has gpu objects so it has to come first + m_save_state_selector_ui.reset(); + #ifdef WITH_DISCORD_PRESENCE ShutdownDiscordPresence(); #endif