mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when GL context is missing
This commit is contained in:
parent
35200b6c7a
commit
e90b8d2354
|
@ -634,6 +634,8 @@ void Window::closeEvent(QCloseEvent* event) {
|
||||||
if (m_controller) {
|
if (m_controller) {
|
||||||
event->ignore();
|
event->ignore();
|
||||||
m_pendingClose = true;
|
m_pendingClose = true;
|
||||||
|
} else {
|
||||||
|
m_display.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue