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_GLCanvas3D.cpp
34610 views
1
--- src/slic3r/GUI/GLCanvas3D.cpp.orig 2025-10-02 17:32:12 UTC
2
+++ src/slic3r/GUI/GLCanvas3D.cpp
3
@@ -109,7 +109,7 @@ float RetinaHelper::get_scale_factor() { return float(
4
#endif // __WXGTK3__
5
6
// Fixed the collision between BuildVolume_Type::Convex and macro Convex defined inside /usr/include/X11/X.h that is included by WxWidgets 3.0.
7
-#if defined(__linux__) && defined(Convex)
8
+#if (defined(__linux__) || defined(__FreeBSD__)) && defined(Convex)
9
#undef Convex
10
#endif
11
12
@@ -1839,7 +1839,11 @@ void GLCanvas3D::render(bool only_init)
13
return;
14
15
// ensures this canvas is current and initialized
16
- if (!_is_shown_on_screen() || !_set_current() || !wxGetApp().init_opengl())
17
+ if (!_is_shown_on_screen())
18
+ return;
19
+ if (!_set_current())
20
+ return;
21
+ if (!wxGetApp().init_opengl())
22
return;
23
24
if (!is_initialized() && !init())
25
26