Merge pull request #23801 from bruvzg/macos_disable_wantslayer_on_pre_mojave

[macOS] Disable setWantsLayer on macOS < 10.14
This commit is contained in:
Rémi Verschelde 2018-11-18 21:10:34 +01:00 committed by GitHub
commit f769e13c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {