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

Fixed access to empty array

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10027 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9c1c089e
......@@ -300,10 +300,14 @@ draw(GLState& /* _state */ , DrawModes::DrawMode _drawMode)
if (halfedges)
{
glEnableClientState(GL_NORMAL_ARRAY);
glVertexPointer(&he_points_[0]);
glNormalPointer(&he_normals_[0]);
if ( !he_points_.empty()) {
glVertexPointer(&he_points_[0]);
if ( !he_normals_.empty())
glNormalPointer(&he_normals_[0]);
draw_halfedges();
draw_halfedges();
}
}
......
Supports Markdown
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