Fixed compiler warnings

This commit is contained in:
Vojtech Bubnik 2021-06-20 16:39:10 +02:00
parent 0d70a2be69
commit d291bb397b
4 changed files with 4 additions and 5 deletions

View file

@ -202,8 +202,6 @@ public:
vertices_and_normals_interleaved_size = 0;
triangle_indices_size = 0;
quad_indices_size = 0;
static const float min = std::numeric_limits<float>::lowest();
static const float max = std::numeric_limits<float>::max();
m_bounding_box.setEmpty();
}

View file

@ -458,7 +458,7 @@ void TriangleSelectorMmuGui::render(ImGuiWrapper *imgui)
GLIndexedVertexArray *iva = nullptr;
if (tr.is_selected_by_seed_fill())
iva = &m_iva_seed_fill;
else if (int color = int(tr.get_state()); color < m_iva_colors.size())
else if (int color = int(tr.get_state()); color < int(m_iva_colors.size()))
iva = &m_iva_colors[color];
if (iva) {
if (iva->vertices_and_normals_interleaved.size() + 18 > iva->vertices_and_normals_interleaved.capacity())