Merge pull request #5755 from jherico/lisa

Fix possible hang when switching out of Oculus mode
This commit is contained in:
Brad Hefta-Gaub 2015-09-09 19:24:00 -07:00
commit f29bcd8b6a

View file

@ -4785,9 +4785,11 @@ void Application::updateDisplayMode() {
qDebug() << "Deferring plugin switch until out of painting";
// Have the old plugin stop requesting renders
oldDisplayPlugin->stop();
QCoreApplication::postEvent(this, new LambdaEvent([this] {
QTimer* timer = new QTimer();
timer->singleShot(500, [this, timer] {
timer->deleteLater();
updateDisplayMode();
}));
});
return;
}