Merge pull request #4389 from birarda/master

render application overlay only if enabled
This commit is contained in:
Brad Hefta-Gaub 2015-03-06 17:06:05 -08:00
commit c9dd96c98d

View file

@ -772,13 +772,10 @@ void Application::paintGL() {
DependencyManager::get<GlowEffect>()->render();
{
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
PerformanceTimer perfTimer("renderOverlay");
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
_applicationOverlay.renderOverlay(true);
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
_applicationOverlay.displayOverlayTexture();
}
_applicationOverlay.displayOverlayTexture();
}
}