summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-06-27 17:52:23 +0100
committerGraham Linden <graham@lindenlab.com>2018-06-27 17:52:23 +0100
commit3d3d24e3c1aac692369bba48aec09b2233389a29 (patch)
treeaa1636ff472f8dead33f9d44e588b1036098726c
parent71a0d3e9597415a86185d7683710252326da7b7a (diff)
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.
-rw-r--r--indra/newview/lldrawpoolwlsky.cpp1
1 files changed, 1 insertions, 0 deletions
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();