summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-11-18 21:10:34 +0100
committerGitHub <noreply@github.com>2018-11-18 21:10:34 +0100
commitf769e13c5ef8b8a0df681f4febff42c05ab05009 (patch)
tree398d80e93dfe307ef5951da324a21b1cd1be6694
parent455f297671238d599a319d52ab651390f98a4670 (diff)
parent4aa441591c23cc192e6c2589bb5d2f8bb420b9df (diff)
Merge pull request #23801 from bruvzg/macos_disable_wantslayer_on_pre_mojave
[macOS] Disable setWantsLayer on macOS < 10.14
-rw-r--r--platform/osx/os_osx.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 81dc861f3f..8123aaa427 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1237,7 +1237,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()) {