summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-28 07:46:55 +0200
committerGitHub <noreply@github.com>2019-08-28 07:46:55 +0200
commitb9fa78bd8c77e5f33b0a21cbd5b193eea07947b9 (patch)
treeb3f73897a220a1981cd8275a3ecf5b2d3413066a
parentc59da91aad4c73c68e5e2884674f5fb3c3340751 (diff)
parent1c1928774c95f131ea00a1cda0c8157ea7fc0f15 (diff)
Merge pull request #31727 from Calinou/vsync-setting-editor-restart
Mark the V-Sync project setting to require an editor restart
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
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);