mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 17:29:06 +02:00
Fix a crash if the gpu doesn't load.
E.g. for invalid files with multithreading enabled.
This commit is contained in:
1 parent
51995a3d43
commit
82706ef82d
1 file changed
+4
-2
+4
-2
@@ -260,8 +260,10 @@ void CPU_RunLoop() {
|
||||
}
|
||||
|
||||
// Let's make sure the gpu has already cleaned up before we start freeing memory.
|
||||
gpu->FinishEventLoop();
|
||||
gpu->SyncThread(true);
|
||||
if (gpu) {
|
||||
gpu->FinishEventLoop();
|
||||
gpu->SyncThread(true);
|
||||
}
|
||||
|
||||
CPU_Shutdown();
|
||||
CPU_SetState(CPU_THREAD_NOT_RUNNING);
|
||||
|
||||
Reference in new issue
Block a user