summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/pipeline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 5f0a47f11d..6f75c09803 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -4330,12 +4330,14 @@ void LLPipeline::renderDebug()
if (pathfindingConsole->isShown())
{
+ F32 ambiance = gSavedSettings.getF32("PathfindingAmbiance");
+
if (LLGLSLShader::sNoFixedFunction)
{
gPathfindingProgram.bind();
gPathfindingProgram.uniform1f("tint", 1.f);
- gPathfindingProgram.uniform1f("ambiance", 1.f);
+ gPathfindingProgram.uniform1f("ambiance", ambiance);
gPathfindingProgram.uniform1f("alpha_scale", 1.f);
}
@@ -4413,8 +4415,6 @@ void LLPipeline::renderDebug()
LLGLEnable blend(GL_BLEND);
{
- F32 ambiance = gSavedSettings.getF32("PathfindingAmbiance");
-
gPathfindingProgram.uniform1f("ambiance", ambiance);
{ //draw solid overlay