Qt: Fix crash when GL context is missing

This commit is contained in:
Vicki Pfau 2019-05-21 07:14:03 -07:00
parent 35200b6c7a
commit e90b8d2354
1 changed files with 2 additions and 0 deletions

View File

@ -634,6 +634,8 @@ void Window::closeEvent(QCloseEvent* event) {
if (m_controller) {
event->ignore();
m_pendingClose = true;
} else {
m_display.reset();
}
}