diff --git a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp index 96c5d208199..68b55bb7b56 100644 --- a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp @@ -172,7 +172,7 @@ Scene_points_with_normal_item::Scene_points_with_normal_item(const Scene_points_ d->point_Slider->setValue(5); else d->point_Slider->setValue(2); - invalidateOpenGLBuffers(); + invalidateOpenGLBuffers(); } // Converts polyhedron to point set diff --git a/Polyhedron/demo/Polyhedron/Viewer.cpp b/Polyhedron/demo/Polyhedron/Viewer.cpp index 61785e20262..3193e9978cd 100644 --- a/Polyhedron/demo/Polyhedron/Viewer.cpp +++ b/Polyhedron/demo/Polyhedron/Viewer.cpp @@ -1809,7 +1809,7 @@ void Viewer_impl::drawGrid(qreal size, int nbSubdivisions) rendering_program_dist.bind(); vao[2].bind(); buffers[4].bind(); - buffers[4].allocate(v_Grid.data(),v_Grid.size()*sizeof(float)); + buffers[4].allocate(v_Grid.data(),static_cast(v_Grid.size()*sizeof(float))); rendering_program_dist.enableAttributeArray("vertex"); rendering_program_dist.setAttributeBuffer("vertex",GL_FLOAT,0,3); buffers[4].release();