Fixed more warnings

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@933 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-08-15 08:43:04 +00:00
parent cb731fb0d1
commit 51f4f26300
6 changed files with 21 additions and 20 deletions

View File

@@ -500,7 +500,7 @@ MeshViewerWidgetT<M>::draw_openmesh(const std::string& _draw_mode)
for (; strip_it!=strip_last; ++strip_it)
{
glDrawElements(GL_TRIANGLE_STRIP,
strip_it->size(), GL_UNSIGNED_INT, &(*strip_it)[0] );
static_cast<GLsizei>(strip_it->size()), GL_UNSIGNED_INT, &(*strip_it)[0] );
}
glDisableClientState(GL_VERTEX_ARRAY);
@@ -554,7 +554,7 @@ MeshViewerWidgetT<M>::draw_openmesh(const std::string& _draw_mode)
glColorPointer(3, GL_UNSIGNED_BYTE, 0, mesh_.vertex_colors());
}
glDrawArrays( GL_POINTS, 0, mesh_.n_vertices() );
glDrawArrays( GL_POINTS, 0, static_cast<GLsizei>(mesh_.n_vertices()) );
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
}