summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-10-18 10:42:54 -0700
committerclayjohn <claynjohn@gmail.com>2022-10-18 10:42:54 -0700
commit150d3656db7765b9ff3b743d9f0e23ba7a371d2b (patch)
tree25f305e823d27d357b9f30b1a57620d957bfbf4f
parent4a96fce801cae2d3e0fe42005c74ca7d60cc1582 (diff)
Default to Opengl3 driver when using the project manager
This only applies when starting the project manager without command line args
-rw-r--r--main/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index bb6ab11362..64a81d7660 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -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.");