diff options
author | Stefano Bonicatti <smjert@gmail.com> | 2017-12-08 17:58:28 +0100 |
---|---|---|
committer | Stefano Bonicatti <smjert@gmail.com> | 2017-12-09 01:43:23 +0100 |
commit | c067cf2c6a81172d28cf522d281ec94ff608a48d (patch) | |
tree | caa1f532469c73ba70071105451e6df138c3d4c0 /platform/uwp/os_uwp.cpp | |
parent | 146bdf031d053d2af771622aa15f70ad04b0720a (diff) | |
download | redot-engine-c067cf2c6a81172d28cf522d281ec94ff608a48d.tar.gz |
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
Diffstat (limited to 'platform/uwp/os_uwp.cpp')
-rw-r--r-- | platform/uwp/os_uwp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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? |