From 11cbf850a42a97e9c3f5f63111dcb9978ec9c587 Mon Sep 17 00:00:00 2001 From: Chaosus Date: Mon, 25 Jun 2018 18:17:19 +0300 Subject: [PATCH] Fix vsync initialization (cherry picked from commit 5c0a57663002d5fc3ac9f272d46a40602f53d06a) --- main/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main/main.cpp b/main/main.cpp index d9932e480ce..90d9abe5dbf 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -892,6 +892,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } video_mode.use_vsync = GLOBAL_DEF("display/window/vsync/use_vsync", true); + OS::get_singleton()->_use_vsync = video_mode.use_vsync; GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation", 2); GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3);