Merge pull request #31727 from Calinou/vsync-setting-editor-restart

Mark the V-Sync project setting to require an editor restart
This commit is contained in:
Rémi Verschelde 2019-08-28 07:46:55 +02:00 committed by GitHub
commit b9fa78bd8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -944,7 +944,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
OS::get_singleton()->_allow_hidpi = GLOBAL_DEF("display/window/dpi/allow_hidpi", false);
}
video_mode.use_vsync = GLOBAL_DEF("display/window/vsync/use_vsync", true);
video_mode.use_vsync = GLOBAL_DEF_RST("display/window/vsync/use_vsync", true);
OS::get_singleton()->_use_vsync = video_mode.use_vsync;
OS::get_singleton()->_allow_layered = GLOBAL_DEF("display/window/per_pixel_transparency/allowed", false);