summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-26 14:05:20 +0200
committerGitHub <noreply@github.com>2019-08-26 14:05:20 +0200
commit4b53fdb25d545b0a2fc73f6a46775ced586994b7 (patch)
treed2c9addeb8a3fa14a828377bb710e8f666926a51 /main
parent816ddd7817a2a99b9a60c9358552ea7998ca097e (diff)
parent3d61ca5696e7497df9344b828337104dd7ac3731 (diff)
Merge pull request #31481 from Calinou/generate-gdnative-use-gles2
Always use the GLES2 backend when generating the GDNative API JSON
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 582df4e866..8def4bd1ec 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -598,6 +598,14 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
auto_build_solutions = true;
editor = true;
+#ifdef DEBUG_METHODS_ENABLED
+ } else if (I->get() == "--gdnative-generate-json-api") {
+ // Register as an editor instance to use the GLES2 fallback automatically on hardware that doesn't support the GLES3 backend
+ editor = true;
+
+ // We still pass it to the main arguments since the argument handling itself is not done in this function
+ main_args.push_back(I->get());
+#endif
} else if (I->get() == "--export" || I->get() == "--export-debug") { // Export project
editor = true;