mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-06 00:56:04 +08:00
GUI_InitParams: Set initial values for members
and fixed a typo in opengl_compatibiity_profile
This commit is contained in:
parent
c8c85d3840
commit
79ae911140
@ -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
|
||||
}
|
||||
|
||||
|
@ -39,16 +39,16 @@ struct GUI_InitParams
|
||||
std::vector<std::string> 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<int, int> opengl_version;
|
||||
bool opengl_debug;
|
||||
bool opengl_compatibiity_profile;
|
||||
std::pair<int, int> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user