Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0984459

Browse files
committed
Use detected format
1 parent b20b892 commit 0984459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impeller/scene/node.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ static std::shared_ptr<Texture> UnpackTextureFromFlatbuffer(
8080
auto image_mapping = std::make_shared<fml::NonOwnedMapping>(
8181
embedded->bytes()->Data(), embedded->bytes()->size());
8282
auto decompressed_image =
83-
DecompressedImage(ISize(embedded->width(), embedded->height()),
84-
DecompressedImage::Format::kRGBA, image_mapping)
83+
DecompressedImage(ISize(embedded->width(), embedded->height()), format,
84+
image_mapping)
8585
.ConvertToRGBA();
8686

8787
auto texture_descriptor = TextureDescriptor{};

0 commit comments

Comments
 (0)