mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Merge pull request #5755 from jherico/lisa
Fix possible hang when switching out of Oculus mode
This commit is contained in:
commit
f29bcd8b6a
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue