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/uwp/os_uwp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/uwp/os_uwp.cpp') diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 1655caf04b..659f162724 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -241,6 +241,7 @@ void OSUWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_aud RasterizerGLES3::register_config(); RasterizerGLES3::make_current(); + gl_context->set_use_vsync(vm.use_vsync); visual_server = memnew(VisualServerRaster); // FIXME: Reimplement threaded rendering? Or remove? -- cgit v1.2.3