mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix a race condition in PainterGL that could lead to a crash
This commit is contained in:
parent
8bdd817238
commit
86b8b1ce3b
1
CHANGES
1
CHANGES
|
@ -2,6 +2,7 @@
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
- Qt: Use safer isLoaded check in GameController
|
- Qt: Use safer isLoaded check in GameController
|
||||||
- GBA: Fix idle skip state being retained between games
|
- GBA: Fix idle skip state being retained between games
|
||||||
|
- Qt: Fix a race condition in PainterGL that could lead to a crash
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ void PainterGL::start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PainterGL::draw() {
|
void PainterGL::draw() {
|
||||||
if (m_queue.isEmpty()) {
|
if (m_queue.isEmpty() || !GBAThreadIsActive(m_context)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (GBASyncWaitFrameStart(&m_context->sync, m_context->frameskip) || !m_queue.isEmpty()) {
|
if (GBASyncWaitFrameStart(&m_context->sync, m_context->frameskip) || !m_queue.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue