Merge pull request #70412 from Calinou/video-driver-change-require-restart

Fix Driver Name editor setting not requiring an editor restart
This commit is contained in:
Rémi Verschelde 2022-12-22 08:56:43 +01:00
commit 5c42b82fd5
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1103,7 +1103,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
OS::get_singleton()->set_cmdline(execpath, main_args);
GLOBAL_DEF("rendering/quality/driver/driver_name", "GLES3");
GLOBAL_DEF_RST("rendering/quality/driver/driver_name", "GLES3");
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/driver/driver_name", PropertyInfo(Variant::STRING, "rendering/quality/driver/driver_name", PROPERTY_HINT_ENUM, "GLES2,GLES3"));
if (video_driver == "") {
video_driver = GLOBAL_GET("rendering/quality/driver/driver_name");