GUI_InitParams: Set initial values for members

and fixed a typo in opengl_compatibiity_profile
This commit is contained in:
YuSanka 2024-12-12 15:35:22 +01:00 committed by Lukas Matena
parent c8c85d3840
commit 79ae911140
2 changed files with 8 additions and 8 deletions

View File

@ -907,7 +907,7 @@ wxGLContext* GUI_App::init_glcontext(wxGLCanvas& canvas)
return m_opengl_mgr.init_glcontext(canvas); return m_opengl_mgr.init_glcontext(canvas);
#else #else
return m_opengl_mgr.init_glcontext(canvas, init_params != nullptr ? init_params->opengl_version : std::make_pair(0, 0), 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 #endif // SLIC3R_OPENGL_ES
} }

View File

@ -39,16 +39,16 @@ struct GUI_InitParams
std::vector<std::string> input_files; std::vector<std::string> input_files;
CLISelectedProfiles selected_presets; CLISelectedProfiles selected_presets;
bool start_as_gcodeviewer; bool start_as_gcodeviewer { false };
bool start_downloader; bool start_downloader { false };
bool delete_after_load; bool delete_after_load { false };
std::string download_url; std::string download_url;
#if !SLIC3R_OPENGL_ES #if !SLIC3R_OPENGL_ES
std::pair<int, int> opengl_version; std::pair<int, int> opengl_version { 0, 0 };
bool opengl_debug; bool opengl_debug { false };
bool opengl_compatibiity_profile; bool opengl_compatibility_profile { false };
#endif // !SLIC3R_OPENGL_ES #endif // !SLIC3R_OPENGL_ES
bool opengl_aa; bool opengl_aa { false };
}; };
int GUI_Run(GUI_InitParams &params); int GUI_Run(GUI_InitParams &params);