mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a crash if the gpu doesn't load.
E.g. for invalid files with multithreading enabled.
This commit is contained in:
parent
51995a3d43
commit
82706ef82d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue