aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolsky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lldrawpoolsky.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolsky.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpoolsky.cpp b/linden/indra/newview/lldrawpoolsky.cpp
index e1dbf95..6aa6142 100644
--- a/linden/indra/newview/lldrawpoolsky.cpp
+++ b/linden/indra/newview/lldrawpoolsky.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$ 5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2002-2008, Linden Research, Inc. 7 * Copyright (c) 2002-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -186,7 +186,7 @@ void LLDrawPoolSky::renderHeavenlyBody(U8 hb, LLFace* face)
186 if (! face->getGeomCount()) return; 186 if (! face->getGeomCount()) return;
187 187
188 LLImageGL* tex = face->getTexture(); 188 LLImageGL* tex = face->getTexture();
189 tex->bind(); 189 gGL.getTexUnit(0)->bind(tex);
190 LLColor4 color(mHB[hb]->getInterpColor()); 190 LLColor4 color(mHB[hb]->getInterpColor());
191 LLOverrideFaceColor override(this, color); 191 LLOverrideFaceColor override(this, color);
192 face->renderIndexed(); 192 face->renderIndexed();
@@ -200,7 +200,7 @@ void LLDrawPoolSky::renderSunHalo(LLFace* face)
200 if (! face->getGeomCount()) return; 200 if (! face->getGeomCount()) return;
201 201
202 LLImageGL* tex = face->getTexture(); 202 LLImageGL* tex = face->getTexture();
203 tex->bind(); 203 gGL.getTexUnit(0)->bind(tex);
204 LLColor4 color(mHB[0]->getInterpColor()); 204 LLColor4 color(mHB[0]->getInterpColor());
205 color.mV[3] = llclamp(mHB[0]->getHaloBrighness(), 0.f, 1.f); 205 color.mV[3] = llclamp(mHB[0]->getHaloBrighness(), 0.f, 1.f);
206 206