forked from Mirrorlandia_minetest/irrlicht
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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user