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.

(cherry picked from commit 53c78b2cac)
This commit is contained in:
Rémi Verschelde 2023-06-28 15:07:37 +02:00 committed by Yuri Sizov
parent 2ba192e803
commit 1875ecb776
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("--convert-3to4");
args.push_back("--rendering-driver");
args.push_back(Main::get_rendering_driver_name());
Error err = OS::get_singleton()->create_instance(args);
ERR_FAIL_COND(err);