CVertexBuffer no longer re-allocates stuff when type doesn't change

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6339 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2022-04-19 12:21:44 +00:00 committed by sfan5
parent b0c03b6f3b
commit c5ee8c8397
1 changed files with 3 additions and 0 deletions

View File

@ -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)