From 6ef7acab116a96fcacd641b4ae8a1f36ef7d19b7 Mon Sep 17 00:00:00 2001 From: supermerill Date: Fri, 29 Oct 2021 14:08:12 +0200 Subject: [PATCH] Fix crash when loading gocde into gui on ArchLinux in tabbed layout Seems transparetn for windows. Maybe it fixes things for macos? supermerill/SuperSlicer#1056 --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 2622af8ed..34c2f9823 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -4864,7 +4864,7 @@ bool GLCanvas3D::_init_collapse_toolbar() bool GLCanvas3D::_set_current() { - return m_context != nullptr && m_canvas->SetCurrent(*m_context); + return m_context != nullptr && m_canvas->IsShownOnScreen() && m_canvas->SetCurrent(*m_context); } void GLCanvas3D::_resize(unsigned int w, unsigned int h)