From e3bfe8657918800a8dbb546b7a317d2342e6582f Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 18 Oct 2014 04:10:34 -0700 Subject: [PATCH] Disable drawing while the thread is shutting down --- src/gba/gba-thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index 2ae789ecd..194711c49 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -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);