From 3d3d24e3c1aac692369bba48aec09b2233389a29 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Wed, 27 Jun 2018 17:52:23 +0100 Subject: Fix non-ALM render path to bind the 2nd moon texture (and not blend with the default square). Also fixes MAINT-3962, ALM and non-ALM moon shading should be identical. --- indra/newview/lldrawpoolwlsky.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview') diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp index 4b77e18c15..abf07377e2 100644 --- a/indra/newview/lldrawpoolwlsky.cpp +++ b/indra/newview/lldrawpoolwlsky.cpp @@ -412,6 +412,7 @@ void LLDrawPoolWLSky::render(S32 pass) // renderStars() requires something to be bound and we might as well only // bind the moon's texture once. gGL.getTexUnit(0)->bind(gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture()); + gGL.getTexUnit(1)->bind(gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture(LLRender::ALTERNATE_DIFFUSE_MAP)); renderHeavenlyBodies(); -- cgit v1.2.3