diff --git a/components/sceneutil/shadow.cpp b/components/sceneutil/shadow.cpp index f6858fca0..0476768f8 100644 --- a/components/sceneutil/shadow.cpp +++ b/components/sceneutil/shadow.cpp @@ -43,7 +43,7 @@ namespace SceneUtil std::string computeNearFarMode = Settings::Manager::getString("near far computation", "Shadows"); if (Misc::StringUtils::lowerCase(computeNearFarMode) == "primitives") mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES); - else if (Misc::StringUtils::lowerCase(computeNearFarMode) == "bounding volumes") + else mShadowSettings->setComputeNearFarModeOverride(osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES); int mapres = Settings::Manager::getInt("shadow map resolution", "Shadows");