Shutdown issues: the legend continues.
If the gpu was slow (softgpu for example), it might still be accessing memory. Need to let it wake, and ignoring coreState too.
This commit is contained in:
parent
9cbb1cb8d3
commit
479a9801d4
3 changed files with 8 additions and 3 deletions
|
@ -257,6 +257,10 @@ void CPU_RunLoop() {
|
|||
coreState = CORE_POWERDOWN;
|
||||
}
|
||||
|
||||
// Let's make sure the gpu has already cleaned up before we start freeing memory.
|
||||
gpu->FinishEventLoop();
|
||||
gpu->SyncThread(true);
|
||||
|
||||
CPU_Shutdown();
|
||||
CPU_SetState(CPU_THREAD_NOT_RUNNING);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue