mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
System: Shut down GPU backend before other components
Prevents a rare crash on shutdown if OSD stats were enabled.
This commit is contained in:
parent
7fde697118
commit
5b40d7902a
@ -1960,6 +1960,8 @@ void System::DestroySystem()
|
||||
|
||||
FreeMemoryStateStorage(true, true, false);
|
||||
|
||||
GPUThread::DestroyGPUBackend();
|
||||
|
||||
Cheats::UnloadAll();
|
||||
PCDrv::Shutdown();
|
||||
SIO::Shutdown();
|
||||
@ -1978,7 +1980,6 @@ void System::DestroySystem()
|
||||
TimingEvents::Shutdown();
|
||||
Achievements::OnSystemDestroyed();
|
||||
ClearRunningGame();
|
||||
GPUThread::DestroyGPUBackend();
|
||||
|
||||
s_state.taints = 0;
|
||||
s_state.bios_hash = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user