Default to Opengl3 driver when using the project manager

This only applies when starting the project manager without command line args
This commit is contained in:
clayjohn 2022-10-18 10:42:54 -07:00
parent 4a96fce801
commit 150d3656db

View File

@ -1530,6 +1530,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (default_renderer_mobile.is_empty()) {
default_renderer_mobile = "gl_compatibility";
}
// Default to Compatibility when using the project manager.
if (rendering_driver.is_empty() && rendering_method.is_empty() && project_manager) {
rendering_driver = "opengl3";
rendering_method = "gl_compatibility";
}
#endif
if (renderer_hints.is_empty()) {
ERR_PRINT("No renderers available.");