diff --git a/lib/ui/painting/image_decoder_impeller.cc b/lib/ui/painting/image_decoder_impeller.cc index fe544bb9da7c7..45f124a79d54b 100644 --- a/lib/ui/painting/image_decoder_impeller.cc +++ b/lib/ui/painting/image_decoder_impeller.cc @@ -323,7 +323,8 @@ sk_sp ImageDecoderImpeller::UploadTextureToShared( texture_descriptor.storage_mode = impeller::StorageMode::kHostVisible; texture_descriptor.format = pixel_format.value(); texture_descriptor.size = {image_info.width(), image_info.height()}; - texture_descriptor.mip_count = texture_descriptor.size.MipCount(); + texture_descriptor.mip_count = + create_mips ? texture_descriptor.size.MipCount() : 1; auto texture = context->GetResourceAllocator()->CreateTexture(texture_descriptor);