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:
Unknown W. Brackets 2013-10-13 09:35:02 -07:00
parent 9cbb1cb8d3
commit 479a9801d4
3 changed files with 8 additions and 3 deletions

View file

@ -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);
}