Project converter: Use same rendering driver as Project Manager

Which means by default OpenGL 3, but it can still be overridden from the command line.
Fixes #76303.
This commit is contained in:
Rémi Verschelde 2023-06-28 15:07:37 +02:00
parent 9e903e462c
commit 53c78b2cac
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 0 deletions

View File

@ -2337,6 +2337,8 @@ void ProjectManager::_perform_full_project_conversion() {
args.push_back("--path"); args.push_back("--path");
args.push_back(path); args.push_back(path);
args.push_back("--convert-3to4"); args.push_back("--convert-3to4");
args.push_back("--rendering-driver");
args.push_back(Main::get_rendering_driver_name());
Error err = OS::get_singleton()->create_instance(args); Error err = OS::get_singleton()->create_instance(args);
ERR_FAIL_COND(err); ERR_FAIL_COND(err);