Worklist #20074
Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1494,9 +1494,12 @@ void Application::setEnableVRMode(bool enableVRMode) { · 1493 unmodified lines | |||
| 1494 | OculusManager::disconnect(); | 1494 | OculusManager::disconnect(); |
| 1495 | OculusManager::connect(); | 1495 | OculusManager::connect(); |
| 1496 | } | 1496 | } |
| 1497 | int oculusMaxFPS = Menu::getInstance()->getOculusUIMaxFPS(); | ||
| 1498 | setRenderTargetFramerate(oculusMaxFPS); | ||
| 1497 | OculusManager::recalibrate(); | 1499 | OculusManager::recalibrate(); |
| 1498 | } else { | 1500 | } else { |
| 1499 | OculusManager::abandonCalibration(); | 1501 | OculusManager::abandonCalibration(); |
| 1502 | setRenderTargetFramerate(0); | ||
| 1500 | } | 1503 | } |
| 1501 | 1504 | ||
| 1502 | resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight()); | 1505 | resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight()); |