Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_GUI__Preview.cpp
34610 views
1
--- src/slic3r/GUI/GUI_Preview.cpp.orig 2025-10-02 17:32:12 UTC
2
+++ src/slic3r/GUI/GUI_Preview.cpp
3
@@ -335,7 +335,7 @@ void Preview::reload_print(bool keep_volumes, bool onl
4
void Preview::reload_print(bool keep_volumes, bool only_gcode)
5
{
6
BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(" %1%: enter, keep_volumes %2%")%__LINE__ %keep_volumes;
7
-#ifdef __linux__
8
+#if defined(__linux__) || defined(__FreeBSD__)
9
// We are getting mysterious crashes on Linux in gtk due to OpenGL context activation GH #1874 #1955.
10
// So we are applying a workaround here: a delayed release of OpenGL vertex buffers.
11
if (!IsShown())
12
@@ -345,7 +345,7 @@ void Preview::reload_print(bool keep_volumes, bool onl
13
}
14
#endif /* __linux__ */
15
if (
16
-#ifdef __linux__
17
+#if defined(__linux__) || defined(__FreeBSD__)
18
m_volumes_cleanup_required ||
19
#endif /* __linux__ */
20
!keep_volumes)
21
@@ -354,7 +354,7 @@ void Preview::reload_print(bool keep_volumes, bool onl
22
//BBS: add m_loaded_print logic
23
//m_loaded = false;
24
m_loaded_print = nullptr;
25
-#ifdef __linux__
26
+#if defined(__linux__) || defined(__FreeBSD__)
27
m_volumes_cleanup_required = false;
28
#endif /* __linux__ */
29
}
30
31