summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprep linden <prep@lindenlab.com>2012-04-12 13:41:45 -0400
committerprep linden <prep@lindenlab.com>2012-04-12 13:41:45 -0400
commit81ed7e48ebd53806f5c4ac9470b53e6ce4bfa6ea (patch)
tree5bb5293f05888a8108c4cae18492e26bc829bce3
parent55e1b9fd6b7b98338db162b6172810a4a571996e (diff)
Removed blending artifacts on path bookend shapes.
-rw-r--r--indra/newview/pipeline.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index e6de14d801..f069c1f06a 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -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 );