mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-09 03:53:02 +02:00
Merge pull request #15911 from amerhifi/bugz-968
case Bugz-968 adding a null check to the display plugin. Possible that display plug…
This commit is contained in:
commit
1bc72a86da
2 changed files with 7 additions and 3 deletions
|
@ -2810,7 +2810,7 @@ void Application::cleanupBeforeQuit() {
|
|||
DependencyManager::destroy<TabletScriptingInterface>();
|
||||
DependencyManager::destroy<ToolbarScriptingInterface>();
|
||||
DependencyManager::destroy<OffscreenUi>();
|
||||
|
||||
|
||||
DependencyManager::destroy<OffscreenQmlSurfaceCache>();
|
||||
|
||||
_snapshotSoundInjector = nullptr;
|
||||
|
|
|
@ -47,5 +47,9 @@ void AbstractHMDScriptingInterface::setIPDScale(float IPDScale) {
|
|||
}
|
||||
|
||||
bool AbstractHMDScriptingInterface::isHMDMode() const {
|
||||
return PluginContainer::getInstance().getActiveDisplayPlugin()->isHmd();
|
||||
}
|
||||
auto displayPlugin = PluginContainer::getInstance().getActiveDisplayPlugin();
|
||||
if (displayPlugin) {
|
||||
return displayPlugin->isHmd();
|
||||
}
|
||||
return false;
|
||||
}
|
Loading…
Reference in a new issue