freebsd-ports/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI__Preview.hpp
zielonka michal 79e5fba255 cad/PrusaSlicer: update to 2.6.0
PR:		272730
Reported by:	michal.zielonka.8001@gmail.com
Approved by:	teodorsigaev@gmail.com (maintainer)
2023-07-28 14:47:57 +02:00

11 lines
502 B
C++

--- src/slic3r/GUI/GUI_Preview.hpp.orig 2023-07-25 11:01:59 UTC
+++ src/slic3r/GUI/GUI_Preview.hpp
@@ -85,7 +85,7 @@ class Preview : public wxPanel
BackgroundSlicingProcess* m_process;
GCodeProcessorResult* m_gcode_result;
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
// We are getting mysterious crashes on Linux in gtk due to OpenGL context activation GH #1874 #1955.
// So we are applying a workaround here.
bool m_volumes_cleanup_required { false };