|
@@ -967,11 +967,7 @@ void TriangleSelectorGUI::render(ImGuiWrapper* imgui)
|
|
|
|
|
|
auto *contour_shader = wxGetApp().get_shader("mm_contour");
|
|
|
contour_shader->start_using();
|
|
|
-
|
|
|
- glsafe(::glDepthFunc(GL_LEQUAL));
|
|
|
m_paint_contour.render();
|
|
|
- glsafe(::glDepthFunc(GL_LESS));
|
|
|
-
|
|
|
contour_shader->stop_using();
|
|
|
}
|
|
|
#endif // ENABLE_LEGACY_OPENGL_REMOVAL
|
|
@@ -1372,10 +1368,7 @@ void TriangleSelectorGUI::render_paint_contour()
|
|
|
contour_shader->set_uniform("projection_matrix", camera.get_projection_matrix());
|
|
|
#endif // ENABLE_GL_SHADERS_ATTRIBUTES
|
|
|
|
|
|
- glsafe(::glDepthFunc(GL_LEQUAL));
|
|
|
m_paint_contour.render();
|
|
|
- glsafe(::glDepthFunc(GL_LESS));
|
|
|
-
|
|
|
contour_shader->stop_using();
|
|
|
}
|
|
|
|