From 13ced87089bcab24ee3c9e59282130117de5e39a Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 18 Jul 2018 15:09:26 +0200 Subject: [PATCH] Fixed depth test when rendering the picking texture --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 8eae6359b..9793e0f57 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -3446,6 +3446,7 @@ void GLCanvas3D::_picking_pass() const ::glDisable(GL_MULTISAMPLE); ::glDisable(GL_BLEND); + ::glEnable(GL_DEPTH_TEST); ::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);