FullscreenUI: Only delete sound stream on full shutdown

Not when changing renderers.
This commit is contained in:
Stenzek
2025-12-26 01:57:17 +10:00
parent 5933489456
commit 682a3b3eb9

View File

@@ -458,10 +458,10 @@ void FullscreenUI::ReturnToMainWindow(float transition_time)
void FullscreenUI::Shutdown(bool clear_state)
{
SoundEffectManager::Shutdown();
if (clear_state)
{
SoundEffectManager::Shutdown();
s_locals.current_main_window = MainWindowType::None;
s_locals.current_pause_submenu = PauseSubMenu::None;
s_locals.pause_menu_was_open = false;