mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Fixed compiler error
Would cause a compiler error when compiled with `scons p=ios target=template_debug ios_simulator=yes arch=arm64`
This commit is contained in:
parent
b6223c0df0
commit
5e7fdef343
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user