summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-15 17:10:33 -0500
committerDave Parks <davep@lindenlab.com>2011-09-15 17:10:33 -0500
commit4fea7dcb3ef35cae9e31ba467403d31ce9083905 (patch)
tree761c03d42ad68f90d43eb1b0b64a979f53727baa /indra/llrender/llrender.h
parent24ae2fb5af52d7128e79a0f63afce9a8db1123eb (diff)
SH-2243 work in progress -- use a hash check to avoid redundantly setting light state
Diffstat (limited to 'indra/llrender/llrender.h')
-rw-r--r--indra/llrender/llrender.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llrender/llrender.h b/indra/llrender/llrender.h
index 0805ebb61a..3f319022f6 100644
--- a/indra/llrender/llrender.h
+++ b/indra/llrender/llrender.h
@@ -429,12 +429,14 @@ public:
static U32 sUIVerts;
private:
+ friend class LLLightState;
+
U32 mMatrixMode;
U32 mMatIdx[NUM_MATRIX_MODES];
U32 mMatHash[NUM_MATRIX_MODES];
glh::matrix4f mMatrix[NUM_MATRIX_MODES][LL_MATRIX_STACK_DEPTH];
-
U32 mCurMatHash[NUM_MATRIX_MODES];
+ U32 mLightHash;
bool mDirty;
U32 mCount;