diff options
author | Rye Mutt <rye@lindenlab.com> | 2024-09-20 10:00:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 10:00:38 -0700 |
commit | 37b8505902ecdf7c7f7daa8d0f840d4c305733be (patch) | |
tree | 5800770128b85a3381e6bf8b8c5ed930a10050f1 /indra/newview | |
parent | 4f5d58dd036d06c88c552b8d8ac57dbb1e0b45ac (diff) | |
parent | fad8b11f480a7e7fc8cae38e0f76de2109a46a99 (diff) |
Merge pull request #2630 from RyeMutt/fix-legacy-skies
Fix sky settings with reflection probe ambiance of 0 still receiving tonemapping
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/pipeline.cpp | 2 |
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(); |