Merge pull request #96597 from MileyHollenberg/bugfix-ios-simulator-metal
Fix iOS Simulator compiler error
This commit is contained in:
commit
39d92f143e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue