summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpool.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-07-03 14:35:08 -0500
committerDave Parks <davep@lindenlab.com>2012-07-03 14:35:08 -0500
commitd1c056beba8c3558756eac816e26a388a512e0ee (patch)
treec8ca81ad12200e6d8854f81658c1e809b050a1dd /indra/newview/lldrawpool.cpp
parent4c4a23226a2db8b1dac5b8d6b8f1537fc9164cf6 (diff)
MAINT-685 Fix for disabling basic shaders making high detail terrain render incorrectly.
Diffstat (limited to 'indra/newview/lldrawpool.cpp')
-rw-r--r--indra/newview/lldrawpool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp
index 6c0be0a5c2..b8c143e9c1 100644
--- a/indra/newview/lldrawpool.cpp
+++ b/indra/newview/lldrawpool.cpp
@@ -418,6 +418,7 @@ void LLRenderPass::applyModelMatrix(LLDrawInfo& params)
gGL.loadMatrix(gGLModelView);
if (params.mModelMatrix)
{
+ llassert(gGL.getMatrixMode() == LLRender::MM_MODELVIEW);
gGL.multMatrix((GLfloat*) params.mModelMatrix->mMatrix);
}
gPipeline.mMatrixOpCount++;