Don't let MeshBuffer append functions shrink memory as this prevents optimizations
Couldn't allocate enough memory before appending several buffers for all of them as first append shrunk the memory again. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6495 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -128,7 +128,7 @@ namespace scene
|
||||
|
||||
const u32 vertexCount = getVertexCount();
|
||||
|
||||
VertexBuffer->reallocate(vertexCount+numVertices);
|
||||
VertexBuffer->reallocate(vertexCount+numVertices, false);
|
||||
switch ( vertexType )
|
||||
{
|
||||
case video::EVT_STANDARD:
|
||||
@@ -154,7 +154,7 @@ namespace scene
|
||||
break;
|
||||
}
|
||||
|
||||
IndexBuffer->reallocate(getIndexCount()+numIndices);
|
||||
IndexBuffer->reallocate(getIndexCount()+numIndices, false);
|
||||
switch ( indexType )
|
||||
{
|
||||
case video::EIT_16BIT:
|
||||
|
Reference in New Issue
Block a user