summaryrefslogtreecommitdiff
path: root/indra/newview/lllegacyatmospherics.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-07-11 08:33:41 -0700
committerGraham Linden <graham@lindenlab.com>2019-07-11 08:33:41 -0700
commit695ec5229f6c8c80625e7d445232ae5fb0011327 (patch)
treefcbc66f59e4428cea638dcafbf3f3366b38b5561 /indra/newview/lllegacyatmospherics.cpp
parent664722168d7016d8bf80a65626bbff542913dc24 (diff)
Fix knock-on from touching the sky tex gen which also generated the shiny env map.
Diffstat (limited to 'indra/newview/lllegacyatmospherics.cpp')
-rw-r--r--indra/newview/lllegacyatmospherics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp
index d56e6bd5d6..68613be19c 100644
--- a/indra/newview/lllegacyatmospherics.cpp
+++ b/indra/newview/lllegacyatmospherics.cpp
@@ -242,7 +242,7 @@ LLColor4 LLAtmospherics::calcSkyColorInDir(AtmosphericsVars& vars, const LLVecto
calcSkyColorWLVert(Pn, vars);
- LLColor3 sky_color = psky->gammaCorrect(vars.hazeColor * 2.0f);
+ LLColor3 sky_color = isShiny ? vars.hazeColor : psky->gammaCorrect(vars.hazeColor * 2.0f);
if (isShiny)
{