Fix Driver Name editor setting not requiring an editor restart

This commit is contained in:
Hugo Locurcio 2022-12-21 18:59:01 +01:00 committed by Relintai
parent ebff4709e2
commit 854fcdc5d6

View File

@ -1066,7 +1066,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", "GLES2");
GLOBAL_DEF_RST("rendering/quality/driver/driver_name", "GLES2");
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/driver/driver_name", PropertyInfo(Variant::STRING, "rendering/quality/driver/driver_name", PROPERTY_HINT_ENUM, "GLES2"));
if (video_driver == "") {
video_driver = GLOBAL_GET("rendering/quality/driver/driver_name");