Remove guards for older macOS and SDK versions
This commit is contained in:
parent
e548697a36
commit
eb6d16fdcf
3 changed files with 16 additions and 33 deletions
|
|
@ -303,12 +303,7 @@ public:
|
|||
case COLORSPACE_REC_2020:
|
||||
// This is necessary to ensure HDR works properly with external displays on macOS Sonoma.
|
||||
if (frame->color_trc == AVCOL_TRC_SMPTE2084) {
|
||||
if (@available(macOS 11.0, *)) {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_PQ);
|
||||
}
|
||||
else {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
|
||||
}
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2100_PQ);
|
||||
}
|
||||
else {
|
||||
m_ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue