diff options
author | bubnikv <bubnikv@gmail.com> | 2019-08-22 21:02:25 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-08-22 21:03:17 +0300 |
commit | 0de566e2a2741f70dfe12da8f33e21f04da57826 (patch) | |
tree | 35338c5ce4f98c08418622acc9f0fa421016b12d /src/slic3r/GUI/3DScene.hpp | |
parent | c6604ff55d5ac89279428865c93dae5c7a17cebb (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.hpp')
-rw-r--r-- | src/slic3r/GUI/3DScene.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/3DScene.hpp b/src/slic3r/GUI/3DScene.hpp index e0603ebc0..5acc85217 100644 --- a/src/slic3r/GUI/3DScene.hpp +++ b/src/slic3r/GUI/3DScene.hpp @@ -647,6 +647,7 @@ public: static void remove_all_canvases(); static bool init(wxGLCanvas* canvas); + static void destroy(); static GUI::GLCanvas3D* get_canvas(wxGLCanvas* canvas); |