summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-02 17:12:47 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-02 17:12:47 +0100
commit093dea21e085b9e08ca4684821f73650bbb91643 (patch)
tree980f4d74471f02b236aefc25dbfe02ffc134ce0a
parentcb1931b2715961dc663fa4e411850e4882722f14 (diff)
parent150d3656db7765b9ff3b743d9f0e23ba7a371d2b (diff)
Merge pull request #67593 from clayjohn/GLES3-pm
Default to Opengl3 driver when using the project manager
-rw-r--r--main/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index ac23086f36..2a08b03b96 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1543,6 +1543,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.");