diff options
author | Brad Linden <46733234+brad-linden@users.noreply.github.com> | 2024-09-23 15:19:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 15:19:55 -0700 |
commit | 5eab13589284f1044bae7303d68bc2752f304a97 (patch) | |
tree | 6e6c8db830162c5d0e27bb51ac4212e19c1903d6 | |
parent | 22675c9a054691775645134c6a326a4f93f22d35 (diff) |
Fix sky settings with reflection probe ambiance of 0 still receiving tonemapping (#2659)
Co-authored-by: Rye Cogtail <rye@lindenlab.com>
-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(); |