diff options
Diffstat (limited to 'linden/indra/newview/llvosky.cpp')
-rw-r--r-- | linden/indra/newview/llvosky.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llvosky.cpp b/linden/indra/newview/llvosky.cpp index eae322e..60f674e 100644 --- a/linden/indra/newview/llvosky.cpp +++ b/linden/indra/newview/llvosky.cpp | |||
@@ -441,7 +441,7 @@ void LLVOSky::initCubeMap() | |||
441 | { | 441 | { |
442 | mCubeMap->init(images); | 442 | mCubeMap->init(images); |
443 | } | 443 | } |
444 | else if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap && LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap")) | 444 | else if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps) |
445 | { | 445 | { |
446 | mCubeMap = new LLCubeMap(); | 446 | mCubeMap = new LLCubeMap(); |
447 | mCubeMap->init(images); | 447 | mCubeMap->init(images); |
@@ -479,7 +479,7 @@ void LLVOSky::restoreGL() | |||
479 | calcAtmospherics(); | 479 | calcAtmospherics(); |
480 | 480 | ||
481 | if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap | 481 | if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap |
482 | && LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap")) | 482 | && LLCubeMap::sUseCubeMaps) |
483 | { | 483 | { |
484 | LLCubeMap* cube_map = getCubeMap(); | 484 | LLCubeMap* cube_map = getCubeMap(); |
485 | 485 | ||