Skip to content

Commit 39d92f1

Browse files
committed
Merge pull request godotengine#96597 from MileyHollenberg/bugfix-ios-simulator-metal
Fix iOS Simulator compiler error
2 parents af0058c + 5e7fdef commit 39d92f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/metal/pixel_formats.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ bool supports_bc_texture_compression(id<MTLDevice> p_device) {
12001200

12011201
// Disable for iOS simulator last.
12021202
#if TARGET_OS_SIMULATOR
1203-
if (![mtlDevice supportsFamily:MTLGPUFamilyApple5]) {
1203+
if (![p_device supportsFamily:MTLGPUFamilyApple5]) {
12041204
disableAllMTLPixFmtCaps(R8Unorm_sRGB);
12051205
disableAllMTLPixFmtCaps(RG8Unorm_sRGB);
12061206
disableAllMTLPixFmtCaps(B5G6R5Unorm);

0 commit comments

Comments
 (0)