diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-28 16:32:54 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-28 16:32:54 -0500 |
commit | bedbbf7c0201275e0a48a0cbbb2a567be4baab3d (patch) | |
tree | f11f9e612ab503e596073269c17c6e4cc1d3ae13 /indra/newview/lldrawpoolterrain.cpp | |
parent | 90547ff411db177bf6424ca553449a81a808fc0f (diff) | |
parent | f3afac420cd3c89eb396fb1f0b77ab4804212415 (diff) |
Merge
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r-- | indra/newview/lldrawpoolterrain.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp index b95d8296fa..7fc78fb382 100644 --- a/indra/newview/lldrawpoolterrain.cpp +++ b/indra/newview/lldrawpoolterrain.cpp @@ -294,6 +294,34 @@ void LLDrawPoolTerrain::renderShadow(S32 pass) //glCullFace(GL_BACK); } + +void LLDrawPoolTerrain::drawLoop() +{ + if (!mDrawFace.empty()) + { + for (std::vector<LLFace*>::iterator iter = mDrawFace.begin(); + iter != mDrawFace.end(); iter++) + { + LLFace *facep = *iter; + + LLMatrix4* model_matrix = &(facep->getDrawable()->getRegion()->mRenderMatrix); + + if (model_matrix != gGLLastMatrix) + { + gGLLastMatrix = model_matrix; + gGL.loadMatrix(gGLModelView); + if (model_matrix) + { + gGL.multMatrix((GLfloat*) model_matrix->mMatrix); + } + gPipeline.mMatrixOpCount++; + } + + facep->renderIndexed(); + } + } +} + void LLDrawPoolTerrain::renderFullShader() { // Hack! Get the region that this draw pool is rendering from! |