diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-11-10 10:03:44 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-11-10 10:03:44 -0600 | 
| commit | ecadf5131a87a0bb9633a2b3875e16a410a98de5 (patch) | |
| tree | 3f869905689e0b6ba82e1a6840cee34cfeab152b /indra/newview | |
| parent | ec2dfa968177b0a9a016238cc2a2522f08efcfed (diff) | |
SH-2240 Fix for red moon.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lldrawpoolwlsky.cpp | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp index f2d077030c..22b06d1aef 100644 --- a/indra/newview/lldrawpoolwlsky.cpp +++ b/indra/newview/lldrawpoolwlsky.cpp @@ -267,10 +267,6 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()  	if (gSky.mVOSkyp->getMoon().getDraw() && face->getGeomCount())  	{ -		if (gPipeline.canUseVertexShaders()) -		{ -			gHighlightProgram.bind(); -		}  		// *NOTE: even though we already bound this texture above for the  		// stars register combiners, we bind again here for defensive reasons,  		// since LLImageGL::bind detects that it's a noop, and optimizes it out. @@ -284,7 +280,14 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()  		color.mV[3] = llclamp(a, 0.f, 1.f); +		if (gPipeline.canUseVertexShaders()) +		{ +			gHighlightProgram.bind(); +			gHighlightProgram.uniform4fv(LLShaderMgr::HIGHLIGHT_COLOR, 1, color.mV); +		} +  		LLFacePool::LLOverrideFaceColor color_override(this, color); +		  		face->renderIndexed();  		if (gPipeline.canUseVertexShaders()) | 
