diff --git a/lib/ui/painting/image_decoder_impeller.cc b/lib/ui/painting/image_decoder_impeller.cc index 037e0c78a277b..5f7c724ed95a9 100644 --- a/lib/ui/painting/image_decoder_impeller.cc +++ b/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