summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2018-06-25 18:17:19 +0300
committerChaosus <chaosus89@gmail.com>2018-06-25 18:17:19 +0300
commit5c0a57663002d5fc3ac9f272d46a40602f53d06a (patch)
tree747cbe496398fb39357cc981bc9f6914461ca690 /main/main.cpp
parentbaf85f299c054564d4a6492b6e117a20d3aa1bda (diff)
Fix vsync initialization
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 2e3c2f41b9..e2b3bb8e6f 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -867,6 +867,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
OS::get_singleton()->_allow_layered = GLOBAL_DEF("display/window/allow_per_pixel_transparency", false);
video_mode.use_vsync = GLOBAL_DEF("display/window/vsync/use_vsync", true);
+ OS::get_singleton()->_use_vsync = video_mode.use_vsync;
+
video_mode.layered = GLOBAL_DEF("display/window/per_pixel_transparency", false);
video_mode.layered_splash = GLOBAL_DEF("display/window/per_pixel_transparency_splash", false);