From 5e7fdef343f1c3448ac8556fc19779607bc605f5 Mon Sep 17 00:00:00 2001 From: Miley Hollenberg Date: Thu, 5 Sep 2024 11:01:20 +0200 Subject: [PATCH] Fixed compiler error Would cause a compiler error when compiled with `scons p=ios target=template_debug ios_simulator=yes arch=arm64` --- drivers/metal/pixel_formats.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/metal/pixel_formats.mm b/drivers/metal/pixel_formats.mm index ac737b3f0a0..36edbab99aa 100644 --- a/drivers/metal/pixel_formats.mm +++ b/drivers/metal/pixel_formats.mm @@ -1200,7 +1200,7 @@ void PixelFormats::modifyMTLFormatCapabilities(id 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);