Merge pull request #96597 from MileyHollenberg/bugfix-ios-simulator-metal

Fix iOS Simulator compiler error
This commit is contained in:
Rémi Verschelde 2024-09-05 17:44:41 +02:00
commit 39d92f143e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1200,7 +1200,7 @@ void PixelFormats::modifyMTLFormatCapabilities(id<MTLDevice> p_device) {
// Disable for iOS simulator last. // Disable for iOS simulator last.
#if TARGET_OS_SIMULATOR #if TARGET_OS_SIMULATOR
if (![mtlDevice supportsFamily:MTLGPUFamilyApple5]) { if (![p_device supportsFamily:MTLGPUFamilyApple5]) {
disableAllMTLPixFmtCaps(R8Unorm_sRGB); disableAllMTLPixFmtCaps(R8Unorm_sRGB);
disableAllMTLPixFmtCaps(RG8Unorm_sRGB); disableAllMTLPixFmtCaps(RG8Unorm_sRGB);
disableAllMTLPixFmtCaps(B5G6R5Unorm); disableAllMTLPixFmtCaps(B5G6R5Unorm);