summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-01-05 21:26:35 -0700
committerXiaohong Bao <bao@lindenlab.com>2012-01-05 21:26:35 -0700
commit837e38d8195b2928648c9c383bea1b3f1cf68fa5 (patch)
treee94c5151ed052c5679258d0f1deeeb061c971e4e /indra
parent141089327649f9b89be4ac9cc2b50f56eee62a48 (diff)
trivial: debug code for SH-2827: [crashhunters] Crash in LLPipeline::generateWaterReflection()
Diffstat (limited to 'indra')
-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]++;
}