mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 10:04:49 +02:00
Merge pull request #4389 from birarda/master
render application overlay only if enabled
This commit is contained in:
commit
c9dd96c98d
1 changed files with 2 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue