diff options
author | der richter <der.richter@gmx.de> | 2023-11-09 18:57:41 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-09 18:12:25 +0000 |
commit | 23de1deaaaace05bb9504567a852ac66e76a1ad1 (patch) | |
tree | 34569c067e22eaf0a6464ca3af0c412f394073ed /video/out/cocoa_cb_common.swift | |
parent | a5bf211e128b4fb916edcf5f46bd23d3ff222711 (diff) | |
download | mpv-23de1deaaaace05bb9504567a852ac66e76a1ad1.tar.bz2 mpv-23de1deaaaace05bb9504567a852ac66e76a1ad1.tar.xz |
mac: remove runtime checks and compatibility for macOS older than 10.15
we stopped supporting macOS older than 10.15 and hence can remove all
the unnecessary runtime checks and compatibility layers.
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 03b263cf99..9c0054a9d7 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -121,9 +121,7 @@ class CocoaCB: Common { } libmpv.setRenderICCProfile(colorSpace) - if #available(macOS 10.11, *) { - layer?.colorspace = colorSpace.cgColorSpace - } + layer?.colorspace = colorSpace.cgColorSpace } override func windowDidEndAnimation() { |