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
parent 49616fd438
commit d484711f2e

@ -97,6 +97,9 @@ namespace scene
virtual void setType(video::E_VERTEX_TYPE vertexType) IRR_OVERRIDE
{
if ( Vertices && Vertices->getType() == vertexType )
return;
IVertexList *NewVertices=0;
switch (vertexType)