Removed blending artifacts on path bookend shapes.

meow-7.2.2
prep linden 2012-04-12 13:41:45 -04:00
parent 55e1b9fd6b
commit 81ed7e48eb
1 changed files with 7 additions and 1 deletions

View File

@ -4417,9 +4417,15 @@ void LLPipeline::renderDebug()
llPathingLibInstance->renderPath();
}
//The bookends
LLGLEnable blend(GL_BLEND);
if (LLGLSLShader::sNoFixedFunction)
{
//remove blending artifacts
gGL.setColorMask(false, false);
llPathingLibInstance->renderPathBookend( gGL, LLPathingLib::LLPL_START );
llPathingLibInstance->renderPathBookend( gGL, LLPathingLib::LLPL_END );
gGL.setColorMask(true, false);
//render the bookends
LLGLEnable blend(GL_BLEND);
gPathfindingProgram.uniform1f("alpha_scale", 0.90f);
llPathingLibInstance->renderPathBookend( gGL, LLPathingLib::LLPL_START );
llPathingLibInstance->renderPathBookend( gGL, LLPathingLib::LLPL_END );