diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc index 9238e10ad4..a2fce06f16 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc @@ -452,7 +452,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr descriptor, // texture is implemented on other platforms. sk_sp image; std::string decode_error; -#if (FML_OS_IOS && !TARGET_IPHONE_SIMULATOR) +#ifdef FML_OS_IOS std::tie(image, decode_error) = UploadTextureToPrivate( context, bitmap_result.device_buffer, bitmap_result.image_info); #else