From 4c9d734a756628ebc1dbf7b19ca335146c0e6393 Mon Sep 17 00:00:00 2001 From: George Marques Date: Thu, 1 Nov 2018 10:27:04 -0300 Subject: Fix initialization of visual server in all platforms Avoid leaking an extra instance when using threads. Also fix threaded loading issues on Android and iOS. --- platform/uwp/os_uwp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'platform/uwp') diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 6410378593..5de8f6539f 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -294,14 +294,13 @@ Error OSUWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_au set_video_mode(vm); - visual_server = memnew(VisualServerRaster); // FIXME: Reimplement threaded rendering? Or remove? - /* if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) { - visual_server = memnew(VisualServerWrapMT(visual_server, get_render_thread_mode() == RENDER_SEPARATE_THREAD)); + visual_server = memnew(VisualServerWrapMT(visual_server, false)); + } else { + visual_server = memnew(VisualServerRaster); } - */ visual_server->init(); input = memnew(InputDefault); -- cgit v1.2.3