diff options
author | Graham Linden <graham@lindenlab.com> | 2018-06-27 17:52:23 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-06-27 17:52:23 +0100 |
commit | 3d3d24e3c1aac692369bba48aec09b2233389a29 (patch) | |
tree | aa1636ff472f8dead33f9d44e588b1036098726c /indra/newview | |
parent | 71a0d3e9597415a86185d7683710252326da7b7a (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.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldrawpoolwlsky.cpp | 1 |
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(); |