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

Fixed bug in pointnode double float

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9415 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0f862e49
......@@ -104,7 +104,7 @@ draw(GLState& /* _state */ , DrawModes::DrawMode _drawMode)
{
glDisable(GL_LIGHTING);
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, &points_[0]);
glVertexPointer(&points_[0]);
glDrawArrays(GL_POINTS, 0, points_.size());
}
......@@ -116,9 +116,9 @@ draw(GLState& /* _state */ , DrawModes::DrawMode _drawMode)
{
glEnable(GL_LIGHTING);
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, &points_[0]);
glVertexPointer(&points_[0]);
glEnableClientState(GL_NORMAL_ARRAY);
glNormalPointer(GL_FLOAT, 0, &normals_[0]);
glNormalPointer(&normals_[0]);
glDrawArrays(GL_POINTS, 0, points_.size());
}
}
......@@ -131,9 +131,9 @@ draw(GLState& /* _state */ , DrawModes::DrawMode _drawMode)
{
glDisable(GL_LIGHTING);
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, &points_[0]);
glVertexPointer(&points_[0]);
glEnableClientState(GL_COLOR_ARRAY);
glColorPointer(3, GL_UNSIGNED_BYTE, 0, &colors_[0]);
glColorPointer(&colors_[0]);
glDrawArrays(GL_POINTS, 0, points_.size());
}
}
......
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