Disable drawing while the thread is shutting down

This commit is contained in:
Jeffrey Pfau 2014-10-18 04:10:34 -07:00
parent 4d9c375f0e
commit e3bfe86579

View File

@ -209,6 +209,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
ARMDeinit(&cpu);
GBADestroy(&gba);
threadContext->sync.videoFrameOn = false;
ConditionWake(&threadContext->sync.videoFrameAvailableCond);
ConditionWake(&threadContext->sync.audioRequiredCond);