summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-30 17:24:49 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-30 17:24:49 -0800
commit12a045f199da3eb11dd8368158131ccee5a42f72 (patch)
tree4c1712fcfef615cbeda8b783a8d0555e7fc9fe5c /indra/llrender
parentde6ae690b5315307b59b1a2ac722700c3839e4ba (diff)
parent0e609cc95b08c28bd51f5ab48160fd93df7a6b28 (diff)
Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-development.
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llrender.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index cd827f5091..03a9884c2b 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -1434,6 +1434,8 @@ void LLRender::loadIdentity()
flush();
{
+ llassert_always(mMatrixMode < NUM_MATRIX_MODES) ;
+
mMatrix[mMatrixMode][mMatIdx[mMatrixMode]].make_identity();
mMatHash[mMatrixMode]++;
}