[macOS] Disable setWantsLayer on macOS < 10.14

(cherry picked from commit 4aa441591c)
This commit is contained in:
bruvzg 2018-11-18 16:20:13 +02:00 committed by Rémi Verschelde
parent 4d610757af
commit 02585688cd
1 changed files with 3 additions and 1 deletions

View File

@ -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); ERR_FAIL_COND_V(window_object == nil, ERR_UNAVAILABLE);
window_view = [[GodotContentView alloc] init]; window_view = [[GodotContentView alloc] init];
[window_view setWantsLayer:TRUE]; if (@available(macOS 10.14, *)) {
[window_view setWantsLayer:TRUE];
}
float displayScale = 1.0; float displayScale = 1.0;
if (is_hidpi_allowed()) { if (is_hidpi_allowed()) {