mirror of https://github.com/mpv-player/mpv
cocoa-cb: fix crash on macOS 10.10
the colorspace of the layer is only available on 10.11 and upwards. Fixes #6041
This commit is contained in:
parent
6bf0edc59c
commit
049816c145
|
@ -241,8 +241,10 @@ class CocoaCB: NSObject {
|
|||
|
||||
func updateICCProfile() {
|
||||
mpv.setRenderICCProfile(window.screen!.colorSpace!)
|
||||
if #available(macOS 10.11, *) {
|
||||
layer.colorspace = window.screen!.colorSpace!.cgColorSpace!
|
||||
}
|
||||
}
|
||||
|
||||
func lmuToLux(_ v: UInt64) -> Int {
|
||||
// the polinomial approximation for apple lmu value -> lux was empirically
|
||||
|
|
Loading…
Reference in New Issue