rhi: Guard wantsExtendedDynamicRangeContent with iOS 16.0 check

Change-Id: I3e3ae413a444f9da2f6c5859357ad47004116475
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Tor Arne Vestbø 2023-08-17 18:13:03 +02:00
parent 57410e5d7d
commit 5c7e600b41
1 changed files with 1 additions and 1 deletions

View File

@ -6274,7 +6274,7 @@ bool QMetalSwapChain::createOrResize()
d->layer.wantsExtendedDynamicRangeContent = YES;
}
} else if (m_format == HDRExtendedDisplayP3Linear) {
if (@available(macOS 11.0, iOS 14.0, *)) {
if (@available(macOS 11.0, iOS 16.0, *)) {
d->layer.colorspace = CGColorSpaceCreateWithName(kCGColorSpaceExtendedLinearDisplayP3);
d->layer.wantsExtendedDynamicRangeContent = YES;
}