Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1558,12 +1558,9 @@ void Application::setEnableVRMode(bool enableVRMode) { · 1557 unmodified lines | |||
| 1558 | OculusManager::disconnect(); | 1558 | OculusManager::disconnect(); |
| 1559 | OculusManager::connect(); | 1559 | OculusManager::connect(); |
| 1560 | } | 1560 | } |
| 1561 | int oculusMaxFPS = Menu::getInstance()->getOculusUIMaxFPS(); | ||
| 1562 | setRenderTargetFramerate(oculusMaxFPS); | ||
| 1563 | OculusManager::recalibrate(); | 1561 | OculusManager::recalibrate(); |
| 1564 | } else { | 1562 | } else { |
| 1565 | OculusManager::abandonCalibration(); | 1563 | OculusManager::abandonCalibration(); |
| 1566 | setRenderTargetFramerate(0); | ||
| 1567 | } | 1564 | } |
| 1568 | 1565 | ||
| 1569 | resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight()); | 1566 | resizeGL(_glWidget->getDeviceWidth(), _glWidget->getDeviceHeight()); |