Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1440,6 +1440,15 @@ void Application::setEnable3DTVMode(bool enable3DTVMode) { · 1439 unmodified lines | ||
| 1440 | 1440 | } |
| 1441 | 1441 | |
| 1442 | 1442 | void Application::setEnableVRMode(bool enableVRMode) { |
| 1443 | + if (enableVRMode) { | |
| 1444 | + if (!OculusManager::isConnected()) { | |
| 1445 | + // attempt to reconnect the Oculus manager - it's possible this was a workaround | |
| 1446 | + // for the sixense crash | |
| 1447 | + OculusManager::disconnect(); | |
| 1448 | + OculusManager::connect(); | |
| 1449 | + } | |
| 1450 | + } | |
| 1451 | + | |
| 1443 | 1452 | resizeGL(_glWidget->width(), _glWidget->height()); |
| 1444 | 1453 | } |
| 1445 | 1454 | |