render application overlay only if enabled
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -772,13 +772,10 @@ void Application::paintGL() { · 771 unmodified lines | ||
| 772 | 772 | |
| 773 | 773 | DependencyManager::get<GlowEffect>()->render(); |
| 774 | 774 | |
| 775 | − { | |
| 775 | + if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) { | |
| 776 | 776 | PerformanceTimer perfTimer("renderOverlay"); |
| 777 | − // PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay() | |
| 778 | 777 | _applicationOverlay.renderOverlay(true); |
| 779 | − if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) { | |
| 780 | − _applicationOverlay.displayOverlayTexture(); | |
| 781 | − } | |
| 778 | + _applicationOverlay.displayOverlayTexture(); | |
| 782 | 779 | } |
| 783 | 780 | } |
| 784 | 781 | |