We are getting mysterious crashes on Linux in gtk due to OpenGL context activation GH #1874 #1955.

So we are applying a workaround here, just on linux.
This commit is contained in:
bubnikv 2019-03-21 11:44:39 +01:00
parent 8105fc33d5
commit 213ff2852a
2 changed files with 14 additions and 12 deletions

View file

@ -84,7 +84,11 @@ class Preview : public wxPanel
BackgroundSlicingProcess* m_process;
GCodePreviewData* m_gcode_preview_data;
#ifdef __linux__
// 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;
#endif /* __linux__ */
// Calling this function object forces Plater::schedule_background_process.
std::function<void()> m_schedule_background_process;