summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolterrain.cpp
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-01-22 15:07:10 -0800
committerCosmic Linden <cosmic@lindenlab.com>2024-01-22 15:07:10 -0800
commit38b3f663fc3214314b75e19fbc25474007479897 (patch)
tree8e0dc46f11a52f33ea2c03ecb474d88535e2c7a8 /indra/newview/lldrawpoolterrain.cpp
parent210d9204813318f55fb39505fda88d4a3544ae0e (diff)
parent2adecc6fac9852974e44e3d58ccf2619b45642a9 (diff)
Merge branch 'release/materials_featurette' of github.com:secondlife/viewer into DRTVWR-592
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r--indra/newview/lldrawpoolterrain.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp
index 6f48971ca0..fc8e9fcfe5 100644
--- a/indra/newview/lldrawpoolterrain.cpp
+++ b/indra/newview/lldrawpoolterrain.cpp
@@ -226,19 +226,8 @@ void LLDrawPoolTerrain::drawLoop()
{
LLFace *facep = *iter;
- LLMatrix4* model_matrix = &(facep->getDrawable()->getRegion()->mRenderMatrix);
-
- if (model_matrix != gGLLastMatrix)
- {
- llassert(gGL.getMatrixMode() == LLRender::MM_MODELVIEW);
- gGLLastMatrix = model_matrix;
- gGL.loadMatrix(gGLModelView);
- if (model_matrix)
- {
- gGL.multMatrix((GLfloat*) model_matrix->mMatrix);
- }
- gPipeline.mMatrixOpCount++;
- }
+ llassert(gGL.getMatrixMode() == LLRender::MM_MODELVIEW);
+ LLRenderPass::applyModelMatrix(&facep->getDrawable()->getRegion()->mRenderMatrix);
facep->renderIndexed();
}