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:
Miley Hollenberg 2024-09-05 11:01:20 +02:00 committed by GitHub
parent b6223c0df0
commit 5e7fdef343
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);