diff --git a/CMakeLists.txt b/CMakeLists.txt index 29ac80778..1500a1d41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR endif() if (ENABLE_VR_DEFAULT) - find_package(osgXR 0.3.9 QUIET) + find_package(osgXR 0.5.0 QUIET) if (osgXR_FOUND) set(SYSTEM_OSGXR_DEFAULT 1) endif() diff --git a/src/Viewer/VRManager.cxx b/src/Viewer/VRManager.cxx index 85221020f..fa768f51a 100644 --- a/src/Viewer/VRManager.cxx +++ b/src/Viewer/VRManager.cxx @@ -59,7 +59,7 @@ VRManager::VRManager() : FLIGHTGEAR_MINOR_VERSION << 8 | FLIGHTGEAR_PATCH_VERSION); _settings->setApp("FlightGear", fgVersion); - _settings->preferEnvBlendMode(osgXR::Settings::OPAQUE); + _settings->preferEnvBlendMode(osgXR::Settings::BLEND_MODE_OPAQUE); // Inform osgXR what node masks to use setVisibilityMaskNodeMasks(simgear::NodeMask::LEFT_BIT,