aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvosky.cpp')
-rw-r--r--linden/indra/newview/llvosky.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llvosky.cpp b/linden/indra/newview/llvosky.cpp
index 442ef23..32a8cac 100644
--- a/linden/indra/newview/llvosky.cpp
+++ b/linden/indra/newview/llvosky.cpp
@@ -31,6 +31,7 @@
31#include "llvosky.h" 31#include "llvosky.h"
32 32
33#include "imageids.h" 33#include "imageids.h"
34#include "llfeaturemanager.h"
34#include "llviewercontrol.h" 35#include "llviewercontrol.h"
35#include "llframetimer.h" 36#include "llframetimer.h"
36#include "timing.h" 37#include "timing.h"
@@ -597,7 +598,7 @@ void LLVOSky::initCubeMap()
597 { 598 {
598 mCubeMap->init(images); 599 mCubeMap->init(images);
599 } 600 }
600 else if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap) 601 else if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap"))
601 { 602 {
602 mCubeMap = new LLCubeMap(); 603 mCubeMap = new LLCubeMap();
603 mCubeMap->init(images); 604 mCubeMap->init(images);
@@ -634,7 +635,8 @@ void LLVOSky::restoreGL()
634 635
635 calcBrightnessScaleAndColors(); 636 calcBrightnessScaleAndColors();
636 637
637 if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap) 638 if (gSavedSettings.getBOOL("RenderWater") && gGLManager.mHasCubeMap
639 && gFeatureManagerp->isFeatureAvailable("RenderCubeMap"))
638 { 640 {
639 LLCubeMap* cube_map = getCubeMap(); 641 LLCubeMap* cube_map = getCubeMap();
640 642