From c067cf2c6a81172d28cf522d281ec94ff608a48d Mon Sep 17 00:00:00 2001 From: Stefano Bonicatti Date: Fri, 8 Dec 2017 17:58:28 +0100 Subject: Fixes vsync setting ignored when using a separate thread for rendering Setting the vsync in the main thread, after the rendering thread starts and takes the OpenGL context fails, so we need to do that before. Also, for some reason, the main thread cannot make current the context anymore. Fixes #13447 --- platform/osx/os_osx.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'platform/osx') diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 6cc8be250d..75d0bd1648 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1089,6 +1089,8 @@ void OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_au [context makeCurrentContext]; + set_use_vsync(p_desired.use_vsync); + [NSApp activateIgnoringOtherApps:YES]; _update_window(); -- cgit v1.2.3