summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2012-03-28 13:11:45 -0400
committerprep <prep@lindenlab.com>2012-03-28 13:11:45 -0400
commit901ed57e6bc1fae1c3c0a6f6790c0361298c5744 (patch)
tree811a2a45af52a410a142262ddff58cf84e95d0e7 /indra/newview/pipeline.cpp
parent473da43c1bbc20245b3a74c1adc7c92f91d25807 (diff)
Added support for customizing the colors used in the navmesh visualizer.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index c58b216c6a..8a691d3a16 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -4343,7 +4343,9 @@ void LLPipeline::renderDebug()
}
else
{
- glClearColor(0,0,0,0);
+ //glClearColor(0,0,0,0);
+ LLColor4U clearColor = pathfindingConsole->mNavMeshColors.mNavMeshClear;
+ glClearColor(clearColor.mV[0],clearColor.mV[1],clearColor.mV[2],0);
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
}