diff options
Diffstat (limited to 'linden/indra/newview/lldrawpoolwlsky.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpoolwlsky.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/linden/indra/newview/lldrawpoolwlsky.cpp b/linden/indra/newview/lldrawpoolwlsky.cpp index 451d08e..46de496 100644 --- a/linden/indra/newview/lldrawpoolwlsky.cpp +++ b/linden/indra/newview/lldrawpoolwlsky.cpp | |||
@@ -276,18 +276,17 @@ void LLDrawPoolWLSky::render(S32 pass) | |||
276 | LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin(); | 276 | LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin(); |
277 | glPushMatrix(); | 277 | glPushMatrix(); |
278 | 278 | ||
279 | glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]); | 279 | glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]); |
280 | 280 | ||
281 | // *NOTE: have to bind a texture here since register combiners blending in | 281 | // *NOTE: have to bind a texture here since register combiners blending in |
282 | // renderStars() requires something to be bound and we might as well only | 282 | // renderStars() requires something to be bound and we might as well only |
283 | // bind the moon's texture once. | 283 | // bind the moon's texture once. |
284 | LLImageGL * tex = gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture(); | 284 | LLImageGL * tex = gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture(); |
285 | gGL.getTexUnit(0)->bind(tex); | 285 | gGL.getTexUnit(0)->bind(tex); |
286 | 286 | ||
287 | renderHeavenlyBodies(); | 287 | renderStars(); |
288 | 288 | ||
289 | renderStars(); | 289 | renderHeavenlyBodies(); |
290 | |||
291 | 290 | ||
292 | glPopMatrix(); | 291 | glPopMatrix(); |
293 | 292 | ||