summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-01-11 16:20:24 -0600
committerDave Parks <davep@lindenlab.com>2023-01-11 16:20:24 -0600
commitb9a4d81d5140b34199a6582b1189473b6a2e72fb (patch)
tree8a65c4be790f3060fa1443aeb9080509f1f6745c /indra/newview
parentb4f53334141b179bdb1762636ce313f14d9e2b10 (diff)
SL-18869 Optimizations -- Revive LLVBOPool and fix silly typo in renderShadowSimple
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/pipeline.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 66083470e2..cedbe4d117 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -7328,7 +7328,7 @@ void LLPipeline::renderShadowSimple(U32 type)
mSimplePool->applyModelMatrix(params);
vb->setBufferFast(LLVertexBuffer::MAP_VERTEX);
vb->drawRangeFast(LLRender::TRIANGLES, 0, vb->getNumVerts()-1, vb->getNumIndices(), 0);
- vb = last_vb;
+ last_vb = vb;
}
}
gGL.loadMatrix(gGLModelView);
@@ -9538,11 +9538,6 @@ void LLPipeline::renderShadow(glh::matrix4f& view, glh::matrix4f& proj, LLCamera
}
else
{
- //{ sort should not be necessary because each entry in sCull should already
- // be sorted by vertex buffer
- // LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("sort shadow simple");
- // std::sort(sCull->beginRenderMap(type), sCull->endRenderMap(type), CompareVertexBuffer());
- //}
renderShadowSimple(type);
}
}