diff --git a/include/CDynamicMeshBuffer.h b/include/CDynamicMeshBuffer.h index 7defeb1c..73f8b425 100644 --- a/include/CDynamicMeshBuffer.h +++ b/include/CDynamicMeshBuffer.h @@ -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: diff --git a/include/CMeshBuffer.h b/include/CMeshBuffer.h index 531fcf0e..90893761 100644 --- a/include/CMeshBuffer.h +++ b/include/CMeshBuffer.h @@ -201,14 +201,14 @@ namespace scene const u32 vertexCount = getVertexCount(); u32 i; - Vertices.reallocate(vertexCount+numVertices); + Vertices.reallocate(vertexCount+numVertices, false); for (i=0; i(vertices)[i]); BoundingBox.addInternalPoint(static_cast(vertices)[i].Pos); } - Indices.reallocate(getIndexCount()+numIndices); + Indices.reallocate(getIndexCount()+numIndices, false); for (i=0; i