VRManager: Update to osgXR 0.5.0
osgXR 0.5.0 broke the API slightly, so update VRManager to use the new enumeration names and update the required osgXR version for when using a system version of osgXR. Signed-off-by: James Hogan <james@albanarts.com>
This commit is contained in:
parent
6c812a3dfd
commit
199adf90df
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue