Fixed compiler error
Would cause a compiler error when compiled with `scons p=ios target=template_debug ios_simulator=yes arch=arm64`
This commit is contained in:
@ -1200,7 +1200,7 @@ void PixelFormats::modifyMTLFormatCapabilities(id<MTLDevice> p_device) {
|
||||
|
||||
// Disable for iOS simulator last.
|
||||
#if TARGET_OS_SIMULATOR
|
||||
if (![mtlDevice supportsFamily:MTLGPUFamilyApple5]) {
|
||||
if (![p_device supportsFamily:MTLGPUFamilyApple5]) {
|
||||
disableAllMTLPixFmtCaps(R8Unorm_sRGB);
|
||||
disableAllMTLPixFmtCaps(RG8Unorm_sRGB);
|
||||
disableAllMTLPixFmtCaps(B5G6R5Unorm);
|
||||
|
||||
Reference in New Issue
Block a user