From 5c0a57663002d5fc3ac9f272d46a40602f53d06a Mon Sep 17 00:00:00 2001 From: Chaosus Date: Mon, 25 Jun 2018 18:17:19 +0300 Subject: [PATCH] Fix vsync initialization --- main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 2e3c2f41b91..e2b3bb8e6fd 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);