summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.h
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-08-22 11:19:04 -0700
committerGraham Linden <graham@lindenlab.com>2019-08-22 11:19:04 -0700
commit8960a56f531745bc2d434bdddb6c65731621f596 (patch)
treecab06c1e1e12745db2abaab96ec525adc8209ad9 /indra/newview/llvosky.h
parent440a40c8f9fd35577470aee193a4b7dd128d80bb (diff)
SL-11776
Fix false alarming sky updates and doing expensive CPU work for same sky pixels.
Diffstat (limited to 'indra/newview/llvosky.h')
-rw-r--r--indra/newview/llvosky.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h
index 5f27085599..6c9d6dc8be 100644
--- a/indra/newview/llvosky.h
+++ b/indra/newview/llvosky.h
@@ -288,7 +288,7 @@ public:
void setSunScale(F32 sun_scale);
void setMoonScale(F32 sun_scale);
- void forceSkyUpdate(void) { mForceUpdate = TRUE; }
+ void forceSkyUpdate(void);
public:
LLFace *mFace[FACE_COUNT];
@@ -337,6 +337,7 @@ protected:
F32 mWind;
bool mInitialized;
+ bool mNeedUpdate; //flag to mark update being necessary (input has changed)
bool mForceUpdate; //flag to force instantaneous update of cubemap
LLVector3 mLastSunLightingDirection;
LLVector3 mLastMoonLightingDirection;