mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when shutting down display
This commit is contained in:
parent
70bc5a0bdb
commit
ffe7142d1f
|
@ -404,6 +404,10 @@ void PainterGL::stop() {
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue