Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all
Unified · Split
| @@ -1861,6 +1861,9 @@ void Application::setEnableVRMode(bool enableVRMode) { · 1860 unmodified lines | |||
| 1861 | // for the sixense crash | 1861 | // for the sixense crash |
| 1862 | OculusManager::disconnect(); | 1862 | OculusManager::disconnect(); |
| 1863 | OculusManager::connect(_glWidget->context()->contextHandle()); | 1863 | OculusManager::connect(_glWidget->context()->contextHandle()); |
| 1864 | _glWidget->setFocus(); | ||
| 1865 | _glWidget->makeCurrent(); | ||
| 1866 | glClear(GL_COLOR_BUFFER_BIT); | ||
| 1864 | } | 1867 | } |
| 1865 | OculusManager::recalibrate(); | 1868 | OculusManager::recalibrate(); |
| 1866 | } else { | 1869 | } else { |