diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.mm b/native/cocos/renderer/gfx-metal/MTLDevice.mm index 25a5887fc87..3f8dacf8ae1 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.mm +++ b/native/cocos/renderer/gfx-metal/MTLDevice.mm @@ -144,10 +144,10 @@ of this software and associated engine source code (the "Software"), a limited, _features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = [mtlDevice supportsFamily:MTLGPUFamilyApple5]; _features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] |= [mtlDevice supportsFamily:MTLGPUFamilyMac2]; } else { -#if CC_PLATFOTM == CC_PLATFORM_IOS +#if CC_PLATFORM == CC_PLATFORM_IOS id device = static_cast>(_mtlDevice); _features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = [device supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily2_v4]; -#elif CC_PLATFOTM == CC_PLATFORM_MACOS +#elif CC_PLATFORM == CC_PLATFORM_MACOS _features[toNumber(Feature::MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL)] = false; #endif }