cast and reindent

This commit is contained in:
Andreas Fabri 2018-02-01 16:36:23 +00:00
parent 44283d17c2
commit 7d5b51c4f0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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<int>(v_Grid.size()*sizeof(float)));
rendering_program_dist.enableAttributeArray("vertex");
rendering_program_dist.setAttributeBuffer("vertex",GL_FLOAT,0,3);
buffers[4].release();