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 037e0c78a27..5f7c724ed95 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc @@ -417,7 +417,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr descriptor, bitmap_result.value()]() { // TODO(jonahwilliams): remove ifdef once blit from buffer to texture is // implemented on other platforms. -#ifdef FML_OS_IOS +#if (FML_OS_IOS && !TARGET_IPHONE_SIMULATOR) result(UploadTextureToPrivate(context, bitmap_result.device_buffer, bitmap_result.image_info)); #else