From 02585688cdcba995e6c60dda6c818dac1fe86bc5 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 18 Nov 2018 16:20:13 +0200 Subject: [PATCH] [macOS] Disable setWantsLayer on macOS < 10.14 (cherry picked from commit 4aa441591c23cc192e6c2589bb5d2f8bb420b9df) --- platform/osx/os_osx.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 20ebdc91f0f..1e8eb59193f 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1098,7 +1098,9 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a ERR_FAIL_COND_V(window_object == nil, ERR_UNAVAILABLE); window_view = [[GodotContentView alloc] init]; - [window_view setWantsLayer:TRUE]; + if (@available(macOS 10.14, *)) { + [window_view setWantsLayer:TRUE]; + } float displayScale = 1.0; if (is_hidpi_allowed()) {