Commit dc5de615 authored by Jan Möbius's avatar Jan Möbius
Browse files

Don't delete ibo if it is not there

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14502 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4ef5c4c0
......@@ -193,7 +193,7 @@ DrawMeshT<Mesh>::rebuild()
delete [] indicesTmp_;
delete [] triToFaceMap_;
glDeleteBuffers(1, &ibo_);
if (ibo_) glDeleteBuffers(1, &ibo_);
ibo_ = 0;
numTris_ = newTriCount;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment