Merge pull request #19767 from Chaosus/vsync_fix

Fix vsync initialization
This commit is contained in:
Rémi Verschelde 2018-06-26 10:00:37 +02:00 committed by GitHub
commit 80d6882ccd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);