diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-13 18:06:49 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-13 18:06:49 -0500 |
commit | 9605da154efc0b4913bc68082b8876b660d205b1 (patch) | |
tree | da58722a5ef1d3e02a849d5ce986eb22a968d41f /indra/newview/lldrawpoolterrain.cpp | |
parent | c559e3d6b93216496065cd05dd2734b726d61201 (diff) | |
parent | b93a23aa828a2ee6de206fe3c74d1b0f3e116db1 (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! |