mirror of https://github.com/mgba-emu/mgba.git
Remove code that expects the GBA thread to still be around after it has ended
This commit is contained in:
parent
dbe5e7e2a5
commit
e2812b30b2
|
@ -52,13 +52,9 @@ void Display::startDrawing(const uint32_t* buffer, GBAThread* thread) {
|
|||
|
||||
void Display::stopDrawing() {
|
||||
if (m_drawThread) {
|
||||
GBAThreadInterrupt(m_context);
|
||||
GBASyncSuspendDrawing(&m_context->sync);
|
||||
QMetaObject::invokeMethod(m_painter, "stop", Qt::BlockingQueuedConnection);
|
||||
m_drawThread->exit();
|
||||
m_drawThread = nullptr;
|
||||
GBASyncResumeDrawing(&m_context->sync);
|
||||
GBAThreadContinue(m_context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue