diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-11-01 19:22:15 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-11-01 19:23:12 +0100 |
commit | 8ac1bcfd3d9bd3a5ab89916f21d77c21499c7249 (patch) | |
tree | 36da83f9848602891b1de911bb3954620080f75c /platform/android | |
parent | b9dd095275c2dde27d1abc26efbcc010ebd1436b (diff) |
Fix init of VisualServerRaster
Contrarily to what #23434 assumed, this is not a memory leak,
the VisualServerRaster instance is passed as a parameter to
VisualServerWrapMT's constructor.
Fixes #23437.
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/os_android.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index abbd9c9aa7..96ff226402 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -182,15 +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) { - visual_server = memnew(VisualServerWrapMT(visual_server, false)); - } else { - visual_server = memnew(VisualServerRaster); } visual_server->init(); - // visual_server->cursor_set_visible(false, 0); AudioDriverManager::initialize(p_audio_driver); |