all repos — mgba @ 86b8b1ce3b46cea8e92a052a05cc5f8d10b63ca8

mGBA Game Boy Advance Emulator

–Qt: Fix a race condition in PainterGL that could lead to a crash
Jeffrey Pfau jeffrey@endrift.com
Tue, 27 Oct 2015 20:27:02 -0700
commit

86b8b1ce3b46cea8e92a052a05cc5f8d10b63ca8

parent

8bdd817238ec1bf82b1f922bcd6053030f937422

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -2,6 +2,7 @@ 0.3.2: (Future)

Bugfixes: - Qt: Use safer isLoaded check in GameController - GBA: Fix idle skip state being retained between games + - Qt: Fix a race condition in PainterGL that could lead to a crash Misc: - GBA Audio: Implement missing flags on SOUNDCNT_X register
M src/platform/qt/DisplayGL.cppsrc/platform/qt/DisplayGL.cpp

@@ -205,7 +205,7 @@ m_active = true;

} void PainterGL::draw() { - if (m_queue.isEmpty()) { + if (m_queue.isEmpty() || !GBAThreadIsActive(m_context)) { return; } if (GBASyncWaitFrameStart(&m_context->sync, m_context->frameskip) || !m_queue.isEmpty()) {