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

Another security check

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9194 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 123ec023
......@@ -450,7 +450,7 @@ template<class Mesh>
void
MeshNodeT<Mesh>::
draw_vertices() {
if ( !vertexBufferInitialized_ )
if ( !vertexBufferInitialized_ || ( mesh_.n_verices() == 0 ))
return;
glDrawArrays(GL_POINTS, 0, mesh_.n_vertices());
......
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