Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -683,11 +683,13 @@ void Application::paintGL() { · 682 unmodified lines | |||
| 683 | _rearMirrorTools->render(true); | 683 | _rearMirrorTools->render(true); |
| 684 | } | 684 | } |
| 685 | 685 | ||
| 686 | PerformanceTimer perfTimer("paintGL/renderOverlay"); | 686 | { |
| 687 | // PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay() | 687 | PerformanceTimer perfTimer("paintGL/renderOverlay"); |
| 688 | _applicationOverlay.renderOverlay(true); | 688 | // PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay() |
| 689 | if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) { | 689 | _applicationOverlay.renderOverlay(true); |
| 690 | _applicationOverlay.displayOverlayTexture(); | 690 | if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) { |
| 691 | _applicationOverlay.displayOverlayTexture(); | ||
| 692 | } | ||
| 691 | } | 693 | } |
| 692 | } | 694 | } |
| 693 | 695 | ||