mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-09 16:10:24 +01:00
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
|
virtual void setType(video::E_VERTEX_TYPE vertexType) IRR_OVERRIDE
|
||||||
{
|
{
|
||||||
|
if ( Vertices && Vertices->getType() == vertexType )
|
||||||
|
return;
|
||||||
|
|
||||||
IVertexList *NewVertices=0;
|
IVertexList *NewVertices=0;
|
||||||
|
|
||||||
switch (vertexType)
|
switch (vertexType)
|
||||||
|
Loading…
Reference in New Issue
Block a user