mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +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");
|
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)) {
|
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
|
||||||
|
_applicationOverlay.renderOverlay(true);
|
||||||
_applicationOverlay.displayOverlayTexture();
|
_applicationOverlay.displayOverlayTexture();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue