From fca492df2b1c10aa1f5fb23aeccc1c4a6c651f84 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 6 Jan 2020 14:26:16 +0200 Subject: [PATCH] - fixed compilation of debug target with older macOS SDKs src/posix/cocoa/i_video.mm:633:31: error: property 'layer' not found on object of type 'id' --- src/posix/cocoa/i_video.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index b06fb0bb80..d6d93ce489 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -630,7 +630,7 @@ void SystemBaseFrameBuffer::SetMode(const bool fullscreen, const bool hiDPI) else { assert(m_window.screen != nil); - assert(m_window.contentView.layer != nil); + assert([m_window.contentView layer] != nil); [m_window.contentView layer].contentsScale = hiDPI ? m_window.screen.backingScaleFactor : 1.0; }