summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-08-28 15:27:23 -0700
committerGraham Linden <graham@lindenlab.com>2019-08-28 15:27:23 -0700
commitc5724023dd80a6c8a77d15650161e7cf67f8650e (patch)
tree38d8402fda01860c23933520d9442858ff0f82e0 /indra/newview/llvosky.cpp
parent5b1dd8a18cbc221e768095f77f78072ee19c1e64 (diff)
Work around issue with friend ops not accepting default params on Clang.
Diffstat (limited to 'indra/newview/llvosky.cpp')
-rw-r--r--indra/newview/llvosky.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index 3ef148e473..ba2ba71e46 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -83,6 +83,8 @@ namespace
LLTrace::BlockTimerStatHandle FTM_VOSKY_UPDATEFORCED("VOSky Update Forced");
F32Seconds UPDATE_EXPRY(0.25f);
+
+ const F32 UPDATE_MIN_DELTA_THRESHOLD = 0.0005f;
}
/***************************************
SkyTex
@@ -737,7 +739,7 @@ bool LLVOSky::updateSky()
LL_RECORD_BLOCK_TIME(FTM_VOSKY_CALC);
calc();
- bool same_atmospherics = aproximatelyEqual(m_lastAtmosphericsVars, m_atmosphericsVars);
+ bool same_atmospherics = approximatelyEqual(m_lastAtmosphericsVars, m_atmosphericsVars, UPDATE_MIN_DELTA_THRESHOLD);
mNeedUpdate = mNeedUpdate || !same_atmospherics;