Merge pull request #12364 from jherico/fix/display_plugin_crash

Don't trigger a backtrace exception on quitting while in HMD
This commit is contained in:
divya 2018-02-08 11:18:19 -08:00 committed by GitHub
commit 97abdb63db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ void Application::paintGL() {
// If a display plugin loses it's underlying support, it
// needs to be able to signal us to not use it
if (!displayPlugin->beginFrameRender(_renderFrameCount)) {
updateDisplayMode();
QMetaObject::invokeMethod(this, "updateDisplayMode");
return;
}
}