diff options
Diffstat (limited to 'linden/indra/newview/lldrawpoolsky.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpoolsky.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpoolsky.cpp b/linden/indra/newview/lldrawpoolsky.cpp index e1dbf95..573061d 100644 --- a/linden/indra/newview/lldrawpoolsky.cpp +++ b/linden/indra/newview/lldrawpoolsky.cpp | |||
@@ -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 | ||