only render the overlay if we're actually rendering the overlay

This commit is contained in:
ZappoMan 2015-02-27 18:00:51 -08:00
parent 9cc66f3da7
commit a338d96b9d

View file

@ -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();
}
}