aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llglslshader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llglslshader.cpp')
-rw-r--r--linden/indra/newview/llglslshader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llglslshader.cpp b/linden/indra/newview/llglslshader.cpp
index cc440c4..0a7ec4a 100644
--- a/linden/indra/newview/llglslshader.cpp
+++ b/linden/indra/newview/llglslshader.cpp
@@ -29,6 +29,7 @@
29#include "llviewerprecompiledheaders.h" 29#include "llviewerprecompiledheaders.h"
30 30
31#include "llviewerwindow.h" 31#include "llviewerwindow.h"
32#include "llfeaturemanager.h"
32#include "llglslshader.h" 33#include "llglslshader.h"
33#include "llviewercontrol.h" 34#include "llviewercontrol.h"
34#include "pipeline.h" 35#include "pipeline.h"
@@ -412,7 +413,7 @@ void LLShaderMgr::setShaders()
412 413
413 if (gGLManager.mHasFramebufferObject) 414 if (gGLManager.mHasFramebufferObject)
414 { 415 {
415 LLPipeline::sDynamicReflections = gSavedSettings.getBOOL("RenderDynamicReflections"); 416 LLPipeline::sDynamicReflections = gSavedSettings.getBOOL("RenderDynamicReflections") && gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap");
416 LLPipeline::sRenderGlow = gSavedSettings.getBOOL("RenderGlow"); 417 LLPipeline::sRenderGlow = gSavedSettings.getBOOL("RenderGlow");
417 } 418 }
418 else 419 else
@@ -471,7 +472,7 @@ void LLShaderMgr::setShaders()
471 loadShadersAvatar(); 472 loadShadersAvatar();
472 473
473 // Load shaders to correct levels 474 // Load shaders to correct levels
474 if (!gSavedSettings.getBOOL("RenderRippleWater")) 475 if (!(gSavedSettings.getBOOL("RenderRippleWater") && gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap")))
475 { 476 {
476 if (gSavedSettings.getBOOL("RenderGlow")) 477 if (gSavedSettings.getBOOL("RenderGlow"))
477 { 478 {