mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
use reference to avoid big copy
This commit is contained in:
parent
13bb174b8b
commit
9fc77ccfa2
1 changed files with 1 additions and 1 deletions
|
@ -1207,7 +1207,7 @@ void RenderablePolyVoxEntityItem::computeShapeInfoWorker() {
|
|||
// pull each triangle in the mesh into a polyhedron which can be collided with
|
||||
unsigned int i = 0;
|
||||
|
||||
const gpu::BufferView vertexBufferView = mesh->getVertexBuffer();
|
||||
const gpu::BufferView& vertexBufferView = mesh->getVertexBuffer();
|
||||
const gpu::BufferView& indexBufferView = mesh->getIndexBuffer();
|
||||
|
||||
gpu::BufferView::Iterator<const uint32_t> it = indexBufferView.cbegin<uint32_t>();
|
||||
|
|
Loading…
Reference in a new issue