all repos — mgba @ ffe7142d1f847919d3bbd025fb849d1bc674c539

mGBA Game Boy Advance Emulator

Qt: Fix crash when shutting down display
Vicki Pfau vi@endrift.com
Thu, 23 May 2019 21:53:32 -0700
commit

ffe7142d1f847919d3bbd025fb849d1bc674c539

parent

70bc5a0bdbbe7a6faab36609210e6e005f0426dc

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/DisplayGL.cppsrc/platform/qt/DisplayGL.cpp

@@ -404,6 +404,10 @@ m_started = false;

dequeueAll(); m_backend->clear(m_backend); m_backend->swap(m_backend); + if (m_swapTimer.isActive()) { + swap(); + m_swapTimer.stop(); + } if (m_videoProxy) { m_videoProxy->reset(); }