Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_GUI__Preview.cpp
34610 views
--- src/slic3r/GUI/GUI_Preview.cpp.orig 2025-10-02 17:32:12 UTC1+++ src/slic3r/GUI/GUI_Preview.cpp2@@ -335,7 +335,7 @@ void Preview::reload_print(bool keep_volumes, bool onl3void Preview::reload_print(bool keep_volumes, bool only_gcode)4{5BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(" %1%: enter, keep_volumes %2%")%__LINE__ %keep_volumes;6-#ifdef __linux__7+#if defined(__linux__) || defined(__FreeBSD__)8// We are getting mysterious crashes on Linux in gtk due to OpenGL context activation GH #1874 #1955.9// So we are applying a workaround here: a delayed release of OpenGL vertex buffers.10if (!IsShown())11@@ -345,7 +345,7 @@ void Preview::reload_print(bool keep_volumes, bool onl12}13#endif /* __linux__ */14if (15-#ifdef __linux__16+#if defined(__linux__) || defined(__FreeBSD__)17m_volumes_cleanup_required ||18#endif /* __linux__ */19!keep_volumes)20@@ -354,7 +354,7 @@ void Preview::reload_print(bool keep_volumes, bool onl21//BBS: add m_loaded_print logic22//m_loaded = false;23m_loaded_print = nullptr;24-#ifdef __linux__25+#if defined(__linux__) || defined(__FreeBSD__)26m_volumes_cleanup_required = false;27#endif /* __linux__ */28}293031