rhi: Guard wantsExtendedDynamicRangeContent with iOS 16.0 check
Change-Id: I3e3ae413a444f9da2f6c5859357ad47004116475 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>bb10
parent
57410e5d7d
commit
5c7e600b41
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue