Forráskód Böngészése

Fixed compiler error

Would cause a compiler error when compiled with `scons p=ios target=template_debug ios_simulator=yes arch=arm64`
Miley Hollenberg 1 éve
szülő
commit
5e7fdef343
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      drivers/metal/pixel_formats.mm

+ 1 - 1
drivers/metal/pixel_formats.mm

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