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> ...@@ -450,7 +450,7 @@ template<class Mesh>
void void
MeshNodeT<Mesh>:: MeshNodeT<Mesh>::
draw_vertices() { draw_vertices() {
if ( !vertexBufferInitialized_ ) if ( !vertexBufferInitialized_ || ( mesh_.n_verices() == 0 ))
return; return;
glDrawArrays(GL_POINTS, 0, mesh_.n_vertices()); 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