mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix vsync initialization
This commit is contained in:
parent
baf85f299c
commit
5c0a576630
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user