mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 04:15:14 +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<TabletScriptingInterface>();
|
||||||
DependencyManager::destroy<ToolbarScriptingInterface>();
|
DependencyManager::destroy<ToolbarScriptingInterface>();
|
||||||
DependencyManager::destroy<OffscreenUi>();
|
DependencyManager::destroy<OffscreenUi>();
|
||||||
|
|
||||||
DependencyManager::destroy<OffscreenQmlSurfaceCache>();
|
DependencyManager::destroy<OffscreenQmlSurfaceCache>();
|
||||||
|
|
||||||
_snapshotSoundInjector = nullptr;
|
_snapshotSoundInjector = nullptr;
|
||||||
|
|
|
@ -47,5 +47,9 @@ void AbstractHMDScriptingInterface::setIPDScale(float IPDScale) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AbstractHMDScriptingInterface::isHMDMode() const {
|
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