From 1c1928774c95f131ea00a1cda0c8157ea7fc0f15 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 27 Aug 2019 23:16:55 +0200 Subject: Mark the V-Sync project setting to require an editor restart The V-Sync project setting also applies to the editor, but it will only take effect when the editor is restarted. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 8def4bd1ec..f4665c4ad4 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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); -- cgit v1.2.3