diff options
Diffstat (limited to 'include/CVertexBuffer.h')
-rw-r--r-- | include/CVertexBuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/CVertexBuffer.h b/include/CVertexBuffer.h index e382dc5..aa8049f 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)
|