diff options
author | Dave Parks <davep@lindenlab.com> | 2010-02-06 17:33:12 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-02-06 17:33:12 -0600 |
commit | 095a5e84408b47ef3c5610e111aefe51d77633ca (patch) | |
tree | 41e2192e1c4a6f3d9b2ea470850b6efc28e4d2df /indra/newview/lldrawpool.cpp | |
parent | 43ca4e104b613c95a1147751122f7ff007542e5c (diff) |
Draw prims using triangle strips instead of triangle lists.
Diffstat (limited to 'indra/newview/lldrawpool.cpp')
-rw-r--r-- | indra/newview/lldrawpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp index 95ddacb722..ef946ac49e 100644 --- a/indra/newview/lldrawpool.cpp +++ b/indra/newview/lldrawpool.cpp @@ -496,8 +496,8 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture) params.mGroup->rebuildMesh(); } params.mVertexBuffer->setBuffer(mask); - params.mVertexBuffer->drawRange(LLRender::TRIANGLES, params.mStart, params.mEnd, params.mCount, params.mOffset); - gPipeline.addTrianglesDrawn(params.mCount/3); + params.mVertexBuffer->drawRange(params.mDrawMode, params.mStart, params.mEnd, params.mCount, params.mOffset); + gPipeline.addTrianglesDrawn(params.mCount, params.mDrawMode); } if (params.mTextureMatrix && texture && params.mTexture.notNull()) |