diff --git a/include/CVertexBuffer.h b/include/CVertexBuffer.h index e382dc5a..aa8049f3 100644 --- a/include/CVertexBuffer.h +++ b/include/CVertexBuffer.h @@ -97,6 +97,9 @@ namespace scene void setType(video::E_VERTEX_TYPE vertexType) override { + if ( Vertices && Vertices->getType() == vertexType ) + return; + IVertexList *NewVertices=0; switch (vertexType)