diff options
author | Oz Linden <oz@lindenlab.com> | 2012-02-02 14:26:33 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-02-02 14:26:33 -0500 |
commit | 5b2dbbadf70ee33bfd288b6384ae0d51715488b1 (patch) | |
tree | 48d7678fbbca7359db17b472e3233c1d2874828b /indra/llrender/llrender.cpp | |
parent | 03290257345c22f909cf1cfac3981e7e07820d21 (diff) | |
parent | 34408bed2644ff957502454f05c21c31fec90009 (diff) |
merge changes for latest viewer-development
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index cd827f5091..b0ddacbb05 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -997,7 +997,7 @@ void LLLightState::setSpotDirection(const LLVector3& direction) const glh::matrix4f& mat = gGL.getModelviewMatrix(); mat.mult_matrix_dir(dir); - mSpotDirection.set(direction); + mSpotDirection.set(dir.v); } } @@ -1434,6 +1434,8 @@ void LLRender::loadIdentity() flush(); { + llassert_always(mMatrixMode < NUM_MATRIX_MODES) ; + mMatrix[mMatrixMode][mMatIdx[mMatrixMode]].make_identity(); mMatHash[mMatrixMode]++; } |