mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 06:53:59 +02:00
only render the overlay if we're actually rendering the overlay
This commit is contained in:
parent
9cc66f3da7
commit
a338d96b9d
1 changed files with 1 additions and 2 deletions
|
@ -773,9 +773,8 @@ void Application::paintGL() {
|
|||
|
||||
{
|
||||
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.renderOverlay(true);
|
||||
_applicationOverlay.displayOverlayTexture();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue