summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolsky.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldrawpoolsky.cpp')
-rw-r--r--indra/newview/lldrawpoolsky.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lldrawpoolsky.cpp b/indra/newview/lldrawpoolsky.cpp
index 2687e6d2c0..1210391360 100644
--- a/indra/newview/lldrawpoolsky.cpp
+++ b/indra/newview/lldrawpoolsky.cpp
@@ -186,7 +186,7 @@ void LLDrawPoolSky::renderHeavenlyBody(U8 hb, LLFace* face)
if (! face->getGeomCount()) return;
LLImageGL* tex = face->getTexture();
- tex->bind();
+ gGL.getTexUnit(0)->bind(tex);
LLColor4 color(mHB[hb]->getInterpColor());
LLOverrideFaceColor override(this, color);
face->renderIndexed();
@@ -200,7 +200,7 @@ void LLDrawPoolSky::renderSunHalo(LLFace* face)
if (! face->getGeomCount()) return;
LLImageGL* tex = face->getTexture();
- tex->bind();
+ gGL.getTexUnit(0)->bind(tex);
LLColor4 color(mHB[0]->getInterpColor());
color.mV[3] = llclamp(mHB[0]->getHaloBrighness(), 0.f, 1.f);