mirror of
https://github.com/libretro/mgba.git
synced 2024-12-01 04:00:32 +00:00
Disable drawing while the thread is shutting down
This commit is contained in:
parent
4d9c375f0e
commit
e3bfe86579
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user