aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpooltree.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpooltree.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpooltree.cpp b/linden/indra/newview/lldrawpooltree.cpp
index 873f0f6..52f669a 100644
--- a/linden/indra/newview/lldrawpooltree.cpp
+++ b/linden/indra/newview/lldrawpooltree.cpp
@@ -102,7 +102,9 @@ void LLDrawPoolTree::render(S32 pass)
102 LLGLEnable test(GL_ALPHA_TEST); 102 LLGLEnable test(GL_ALPHA_TEST);
103 LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); 103 LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f);
104 104
105 if (gSavedSettings.getBOOL("RenderAnimateTrees")) 105 static BOOL* sRenderAnimateTrees = rebind_llcontrol<BOOL>("RenderAnimateTrees", &gSavedSettings, true);
106
107 if (*sRenderAnimateTrees)
106 { 108 {
107 renderTree(); 109 renderTree();
108 } 110 }
@@ -205,7 +207,9 @@ void LLDrawPoolTree::renderForSelect()
205 gGL.getTexUnit(0)->setTextureColorBlend(LLTexUnit::TBO_REPLACE, LLTexUnit::TBS_PREV_COLOR); 207 gGL.getTexUnit(0)->setTextureColorBlend(LLTexUnit::TBO_REPLACE, LLTexUnit::TBS_PREV_COLOR);
206 gGL.getTexUnit(0)->setTextureAlphaBlend(LLTexUnit::TBO_MULT, LLTexUnit::TBS_TEX_ALPHA, LLTexUnit::TBS_VERT_ALPHA); 208 gGL.getTexUnit(0)->setTextureAlphaBlend(LLTexUnit::TBO_MULT, LLTexUnit::TBS_TEX_ALPHA, LLTexUnit::TBS_VERT_ALPHA);
207 209
208 if (gSavedSettings.getBOOL("RenderAnimateTrees")) 210 static BOOL* sRenderAnimateTrees = rebind_llcontrol<BOOL>("RenderAnimateTrees", &gSavedSettings, true);
211
212 if (*sRenderAnimateTrees)
209 { 213 {
210 renderTree(TRUE); 214 renderTree(TRUE);
211 } 215 }