Skip to content
Snippets Groups Projects
Commit ecadf513 authored by David Parks's avatar David Parks
Browse files

SH-2240 Fix for red moon.

parent ec2dfa96
No related branches found
No related tags found
No related merge requests found
...@@ -267,10 +267,6 @@ void LLDrawPoolWLSky::renderHeavenlyBodies() ...@@ -267,10 +267,6 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
if (gSky.mVOSkyp->getMoon().getDraw() && face->getGeomCount()) if (gSky.mVOSkyp->getMoon().getDraw() && face->getGeomCount())
{ {
if (gPipeline.canUseVertexShaders())
{
gHighlightProgram.bind();
}
// *NOTE: even though we already bound this texture above for the // *NOTE: even though we already bound this texture above for the
// stars register combiners, we bind again here for defensive reasons, // stars register combiners, we bind again here for defensive reasons,
// since LLImageGL::bind detects that it's a noop, and optimizes it out. // since LLImageGL::bind detects that it's a noop, and optimizes it out.
...@@ -284,7 +280,14 @@ void LLDrawPoolWLSky::renderHeavenlyBodies() ...@@ -284,7 +280,14 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
color.mV[3] = llclamp(a, 0.f, 1.f); 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); LLFacePool::LLOverrideFaceColor color_override(this, color);
face->renderIndexed(); face->renderIndexed();
if (gPipeline.canUseVertexShaders()) if (gPipeline.canUseVertexShaders())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment