You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #31481 from Calinou/generate-gdnative-use-gles2
Always use the GLES2 backend when generating the GDNative API JSON
This commit is contained in:
@@ -598,6 +598,14 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||||||
|
|
||||||
auto_build_solutions = true;
|
auto_build_solutions = true;
|
||||||
editor = 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
|
} else if (I->get() == "--export" || I->get() == "--export-debug") { // Export project
|
||||||
|
|
||||||
editor = true;
|
editor = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user