summaryrefslogtreecommitdiff
path: root/platform/osx/os_osx.mm
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-01 16:41:01 +0100
committerGitHub <noreply@github.com>2018-11-01 16:41:01 +0100
commit18d06b971b7d04cc4dc93607dd90720f8e6c5624 (patch)
tree6c367eb0171cf996d727e3467d66ca381210f7d5 /platform/osx/os_osx.mm
parentb776049b83960c37d4616364346c510068f2852d (diff)
parent4c9d734a756628ebc1dbf7b19ca335146c0e6393 (diff)
Merge pull request #23434 from vnen/visual-thread-fix
Fix initialization of visual server in all platforms
Diffstat (limited to 'platform/osx/os_osx.mm')
-rw-r--r--platform/osx/os_osx.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index b84e22f53c..cbdec92b90 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1383,10 +1383,11 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
video_driver_index = p_video_driver;
- visual_server = memnew(VisualServerRaster);
if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) {
visual_server = memnew(VisualServerWrapMT(visual_server, get_render_thread_mode() == RENDER_SEPARATE_THREAD));
+ } else {
+ visual_server = memnew(VisualServerRaster);
}
visual_server->init();