From 8febd88e8072bc71332099ac749a107e1eeb36ca Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 18 Jul 2019 11:36:17 +0200 Subject: [PATCH 1/2] Fixed rendering of toolbars' textures with prespective camera --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- src/slic3r/GUI/GLTexture.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 31372659f..47b9ad48a 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3995,7 +3995,7 @@ void GLCanvas3D::_render_overlays() const glsafe(::glPushMatrix()); glsafe(::glLoadIdentity()); // ensure that the textures are renderered inside the frustrum - glsafe(::glTranslated(0.0, 0.0, -(m_camera.get_near_z() + 0.5))); + glsafe(::glTranslated(0.0, 0.0, -(m_camera.get_near_z() + 0.005))); // ensure that the overlay fits the frustrum near z plane double gui_scale = m_camera.get_gui_scale(); glsafe(::glScaled(gui_scale, gui_scale, 1.0)); diff --git a/src/slic3r/GUI/GLTexture.cpp b/src/slic3r/GUI/GLTexture.cpp index 171a5c885..7a29cc6ca 100644 --- a/src/slic3r/GUI/GLTexture.cpp +++ b/src/slic3r/GUI/GLTexture.cpp @@ -280,9 +280,9 @@ bool GLTexture::load_from_svg_files_as_sprites_array(const std::vector Date: Thu, 18 Jul 2019 12:03:41 +0200 Subject: [PATCH 2/2] Partially revert 8febd88e8072bc71332099ac749a107e1eeb36ca --- src/slic3r/GUI/GLTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLTexture.cpp b/src/slic3r/GUI/GLTexture.cpp index 7a29cc6ca..171a5c885 100644 --- a/src/slic3r/GUI/GLTexture.cpp +++ b/src/slic3r/GUI/GLTexture.cpp @@ -280,9 +280,9 @@ bool GLTexture::load_from_svg_files_as_sprites_array(const std::vector