mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
Fix possible hang when switching out of Oculus mode
This commit is contained in:
parent
ae8c3a19ed
commit
382de2b4aa
1 changed files with 4 additions and 2 deletions
|
@ -4761,9 +4761,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