Skip to content
Snippets Groups Projects
Commit 0e3e720a authored by Ptolemy's avatar Ptolemy
Browse files

SL-12261 Remove redrawing of sky twice and timer causing it not to be re-drawn twice 2% of the time

parent fbf1d2a6
No related branches found
No related tags found
No related merge requests found
......@@ -123,23 +123,12 @@ void LLDrawPoolSky::renderSkyFace(U8 index)
return;
}
F32 interp_val = gSky.mVOSkyp ? gSky.mVOSkyp->getInterpVal() : 0.0f;
if (index < 6) // sky tex...interp
{
llassert(mSkyTex);
mSkyTex[index].bindTexture(true); // bind the current tex
face->renderIndexed();
if (interp_val > 0.01f) // iff, we've got enough info to lerp (a to and a from)
{
LLGLEnable blend(GL_BLEND);
llassert(mSkyTex);
mSkyTex[index].bindTexture(false); // bind the "other" texture
gGL.diffuseColor4f(1, 1, 1, interp_val); // lighting is disabled
face->renderIndexed();
}
}
else // heavenly body faces, no interp...
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment