diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-01 16:41:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 16:41:01 +0100 |
commit | 18d06b971b7d04cc4dc93607dd90720f8e6c5624 (patch) | |
tree | 6c367eb0171cf996d727e3467d66ca381210f7d5 /platform/android/os_android.cpp | |
parent | b776049b83960c37d4616364346c510068f2852d (diff) | |
parent | 4c9d734a756628ebc1dbf7b19ca335146c0e6393 (diff) |
Merge pull request #23434 from vnen/visual-thread-fix
Fix initialization of visual server in all platforms
Diffstat (limited to 'platform/android/os_android.cpp')
-rw-r--r-- | platform/android/os_android.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index 8e050c1d27..abbd9c9aa7 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -39,7 +39,7 @@ #include "file_access_android.h" #include "main/main.h" #include "servers/visual/visual_server_raster.h" -//#include "servers/visual/visual_server_wrap_mt.h" +#include "servers/visual/visual_server_wrap_mt.h" #ifdef ANDROID_NATIVE_ACTIVITY #include "dir_access_android.h" @@ -182,11 +182,12 @@ Error OS_Android::initialize(const VideoMode &p_desired, int p_video_driver, int video_driver_index = p_video_driver; - visual_server = memnew(VisualServerRaster); - /* if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) { + if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) { visual_server = memnew(VisualServerWrapMT(visual_server, false)); - };*/ + } else { + visual_server = memnew(VisualServerRaster); + } visual_server->init(); // visual_server->cursor_set_visible(false, 0); |