mirror of https://github.com/CGAL/cgal
Fix a warning -Wsign-compare
This commit is contained in:
parent
f377b424ec
commit
38657c4591
|
|
@ -294,7 +294,7 @@ void Scene_polygon_soup::initialize_buffers() const
|
||||||
buffers[2].release();
|
buffers[2].release();
|
||||||
std::vector<float> empty_array;
|
std::vector<float> empty_array;
|
||||||
empty_array.resize(0);
|
empty_array.resize(0);
|
||||||
for(int i=0; i<v_edge.size(); i++)
|
for(std::size_t i=0; i<v_edge.size(); i++)
|
||||||
empty_array.push_back(0.0);
|
empty_array.push_back(0.0);
|
||||||
buffers[3].bind();
|
buffers[3].bind();
|
||||||
buffers[3].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
buffers[3].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
||||||
|
|
@ -313,7 +313,7 @@ void Scene_polygon_soup::initialize_buffers() const
|
||||||
rendering_program.setAttributeBuffer(poly_vertexLocation[0],GL_FLOAT,0,3);
|
rendering_program.setAttributeBuffer(poly_vertexLocation[0],GL_FLOAT,0,3);
|
||||||
buffers[4].release();
|
buffers[4].release();
|
||||||
empty_array.resize(0);
|
empty_array.resize(0);
|
||||||
for(int i=0; i<v_edge.size(); i++)
|
for(std::size_t i=0; i<v_edge.size(); i++)
|
||||||
empty_array.push_back(0.0);
|
empty_array.push_back(0.0);
|
||||||
buffers[5].bind();
|
buffers[5].bind();
|
||||||
buffers[5].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
buffers[5].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ void Scene_polyhedron_item::initialize_buffers() const
|
||||||
buffers[4].release();
|
buffers[4].release();
|
||||||
std::vector<float> empty_array;
|
std::vector<float> empty_array;
|
||||||
empty_array.resize(0);
|
empty_array.resize(0);
|
||||||
for(int i=0; i<v_edge.size(); i++)
|
for(std::size_t i=0; i<v_edge.size(); i++)
|
||||||
empty_array.push_back(0.0);
|
empty_array.push_back(0.0);
|
||||||
buffers[5].bind();
|
buffers[5].bind();
|
||||||
buffers[5].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
buffers[5].allocate(empty_array.data(), empty_array.size()*sizeof(float));
|
||||||
|
|
|
||||||
|
|
@ -717,7 +717,7 @@ Scene_segmented_image_item::initialize_buffers()
|
||||||
|
|
||||||
draw_Bbox(bbox(), v_box);
|
draw_Bbox(bbox(), v_box);
|
||||||
std::vector<float> nul_vec(0);
|
std::vector<float> nul_vec(0);
|
||||||
for(int i=0; i<v_box->size(); i++)
|
for(std::size_t i=0; i<v_box->size(); i++)
|
||||||
nul_vec.push_back(0.0);
|
nul_vec.push_back(0.0);
|
||||||
|
|
||||||
rendering_program.bind();
|
rendering_program.bind();
|
||||||
|
|
@ -748,7 +748,7 @@ Scene_segmented_image_item::initialize_buffers()
|
||||||
vao[0].release();
|
vao[0].release();
|
||||||
|
|
||||||
color.resize(0);
|
color.resize(0);
|
||||||
for(int i=0; i<helper.color_size()/sizeof(GLuint); i++)
|
for(std::size_t i=0; i<helper.color_size()/sizeof(GLuint); i++)
|
||||||
color.push_back(0.0);
|
color.push_back(0.0);
|
||||||
|
|
||||||
vao[1].bind();
|
vao[1].bind();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue