Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-08-22 21:02:25 +0300
committerbubnikv <bubnikv@gmail.com>2019-08-22 21:03:17 +0300
commit0de566e2a2741f70dfe12da8f33e21f04da57826 (patch)
tree35338c5ce4f98c08418622acc9f0fa421016b12d /src/slic3r/GUI/3DScene.cpp
parentc6604ff55d5ac89279428865c93dae5c7a17cebb (diff)
Hopefully a workaround for crashes and hang ups at closing on Windows.
Release the OpenGL contexts not by a destructor of a static class, but explicitely (predictively).
Diffstat (limited to 'src/slic3r/GUI/3DScene.cpp')
-rw-r--r--src/slic3r/GUI/3DScene.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp
index 8d1a154b4..d764d6cef 100644
--- a/src/slic3r/GUI/3DScene.cpp
+++ b/src/slic3r/GUI/3DScene.cpp
@@ -2007,6 +2007,11 @@ bool _3DScene::init(wxGLCanvas* canvas)
return s_canvas_mgr.init(canvas);
}
+void _3DScene::destroy()
+{
+ s_canvas_mgr.destroy();
+}
+
GUI::GLCanvas3D* _3DScene::get_canvas(wxGLCanvas* canvas)
{
return s_canvas_mgr.get_canvas(canvas);