diff options
Diffstat (limited to 'linden/indra/newview/lldrawpoolwater.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpoolwater.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpoolwater.cpp b/linden/indra/newview/lldrawpoolwater.cpp index 100eb43..035cb56 100644 --- a/linden/indra/newview/lldrawpoolwater.cpp +++ b/linden/indra/newview/lldrawpoolwater.cpp | |||
@@ -92,8 +92,8 @@ LLDrawPool *LLDrawPoolWater::instancePool() | |||
92 | 92 | ||
93 | void LLDrawPoolWater::prerender() | 93 | void LLDrawPoolWater::prerender() |
94 | { | 94 | { |
95 | mVertexShaderLevel = gSavedSettings.getBOOL("RenderRippleWater") ? | 95 | mVertexShaderLevel = (gSavedSettings.getBOOL("RenderRippleWater") && gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap")) ? |
96 | LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_ENVIRONMENT) : 0; | 96 | LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_ENVIRONMENT) : 0; |
97 | 97 | ||
98 | } | 98 | } |
99 | 99 | ||
@@ -565,7 +565,7 @@ void LLDrawPoolWater::shade() | |||
565 | LLCubeMap* skyMap = gSky.mVOSkyp->getCubeMap(); | 565 | LLCubeMap* skyMap = gSky.mVOSkyp->getCubeMap(); |
566 | 566 | ||
567 | gWaterProgram.enableTexture(LLShaderMgr::ENVIRONMENT_MAP, GL_TEXTURE_CUBE_MAP_ARB); | 567 | gWaterProgram.enableTexture(LLShaderMgr::ENVIRONMENT_MAP, GL_TEXTURE_CUBE_MAP_ARB); |
568 | skyMap->bind(); | 568 | skyMap->bind(); |
569 | 569 | ||
570 | //bind normal map | 570 | //bind normal map |
571 | S32 bumpTex = gWaterProgram.enableTexture(LLShaderMgr::BUMP_MAP); | 571 | S32 bumpTex = gWaterProgram.enableTexture(LLShaderMgr::BUMP_MAP); |