From 81ed7e48ebd53806f5c4ac9470b53e6ce4bfa6ea Mon Sep 17 00:00:00 2001 From: prep linden Date: Thu, 12 Apr 2012 13:41:45 -0400 Subject: Removed blending artifacts on path bookend shapes. --- indra/newview/pipeline.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indra/newview/pipeline.cpp') 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 ); -- cgit v1.2.3