diff --git a/src/core/system.cpp b/src/core/system.cpp index 267a7c092..0e672c991 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -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 = {};