From 43c6f4cb6cdfd9fb52b6016a17d21f9baf473b92 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 23 Oct 2020 08:07:47 +0200 Subject: [PATCH] Fix rendering painted triangles (not showing when viewed in direction of the normal) --- src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp index d54e93b1dd..99b89854ee 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp @@ -79,7 +79,7 @@ void GLGizmoPainterBase::render_triangles(const Selection& selection) const glsafe(::glEnable(GL_POLYGON_OFFSET_FILL)); ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); } ); - glsafe(::glPolygonOffset(-1.0, 1.0)); + glsafe(::glPolygonOffset(-1.0, -1.0)); // Take care of the clipping plane. The normal of the clipping plane is // saved with opposite sign than we need to pass to OpenGL (FIXME)