summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRye Cogtail <rye@lindenlab.com>2024-09-20 12:10:06 -0400
committerRye Cogtail <rye@lindenlab.com>2024-09-20 12:10:24 -0400
commitfad8b11f480a7e7fc8cae38e0f76de2109a46a99 (patch)
tree5800770128b85a3381e6bf8b8c5ed930a10050f1 /indra
parent4f5d58dd036d06c88c552b8d8ac57dbb1e0b45ac (diff)
Fix sky settings with reflection probe ambiance of 0 still receiving tonemapping
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 14a15eb59f..fe02742aac 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -7070,7 +7070,7 @@ void LLPipeline::tonemap(LLRenderTarget* src, LLRenderTarget* dst)
LLSettingsSky::ptr_t psky = LLEnvironment::instance().getCurrentSky();
- bool no_post = gSnapshotNoPost || (buildNoPost && gFloaterTools->isAvailable());
+ bool no_post = gSnapshotNoPost || psky->getReflectionProbeAmbiance(should_auto_adjust) == 0.f || (buildNoPost && gFloaterTools->isAvailable());
LLGLSLShader& shader = no_post ? gNoPostTonemapProgram : gDeferredPostTonemapProgram;
shader.bind();