diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 27315f8078..273e030b24 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -907,7 +907,7 @@ wxGLContext* GUI_App::init_glcontext(wxGLCanvas& canvas) return m_opengl_mgr.init_glcontext(canvas); #else return m_opengl_mgr.init_glcontext(canvas, init_params != nullptr ? init_params->opengl_version : std::make_pair(0, 0), - init_params != nullptr ? init_params->opengl_compatibiity_profile : false, init_params != nullptr ? init_params->opengl_debug : false); + init_params != nullptr ? init_params->opengl_compatibility_profile : false, init_params != nullptr ? init_params->opengl_debug : false); #endif // SLIC3R_OPENGL_ES } diff --git a/src/slic3r/GUI/GUI_Init.hpp b/src/slic3r/GUI/GUI_Init.hpp index 2a8e210e65..acb66895c7 100644 --- a/src/slic3r/GUI/GUI_Init.hpp +++ b/src/slic3r/GUI/GUI_Init.hpp @@ -39,16 +39,16 @@ struct GUI_InitParams std::vector input_files; CLISelectedProfiles selected_presets; - bool start_as_gcodeviewer; - bool start_downloader; - bool delete_after_load; + bool start_as_gcodeviewer { false }; + bool start_downloader { false }; + bool delete_after_load { false }; std::string download_url; #if !SLIC3R_OPENGL_ES - std::pair opengl_version; - bool opengl_debug; - bool opengl_compatibiity_profile; + std::pair opengl_version { 0, 0 }; + bool opengl_debug { false }; + bool opengl_compatibility_profile { false }; #endif // !SLIC3R_OPENGL_ES - bool opengl_aa; + bool opengl_aa { false }; }; int GUI_Run(GUI_InitParams ¶ms);