History

Merge pull request #5550 from jherico/marge

PLUGINS - Cleaning up HMD tools

Brad Hefta-Gaub committed 11 years ago

Commit 35d65282 parents 19d3193 7694c1c4 files · +87 −102Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+7−3
@@ -4595,18 +4595,22 @@ void Application::updateDisplayMode() { · 4594 unmodified lines
45954595 _offscreenContext->makeCurrent();
45964596 offscreenUi->resize(fromGlm(newDisplayPlugin->getRecommendedUiSize()));
45974597 _offscreenContext->makeCurrent();
4598− if (newDisplayPlugin->isHmd()) {
4599− showDisplayPluginsTools();
4600− }
46014598 }
46024599
46034600 oldDisplayPlugin = _displayPlugin;
46044601 _displayPlugin = newDisplayPlugin;
46054602
4603+ // Only show the hmd tools after the correct plugin has
4604+ // been activated so that it's UI is setup correctly
4605+ if (newDisplayPlugin->isHmd()) {
4606+ showDisplayPluginsTools();
4607+ }
4608+
46064609 if (oldDisplayPlugin) {
46074610 oldDisplayPlugin->deactivate();
46084611 _offscreenContext->makeCurrent();
46094612 }
4613+ emit activeDisplayPluginChanged();
46104614 resetSensors();
46114615 }
46124616 Q_ASSERT_X(_displayPlugin, "Application::updateDisplayMode", "could not find an activated display plugin");