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

Commit 1fb7839

Browse files
committed
Use detected format
1 parent b20b892 commit 1fb7839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

impeller/scene/node.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static std::shared_ptr<Texture> UnpackTextureFromFlatbuffer(
4848
bytes_per_component = 1;
4949
break;
5050
case fb::ComponentType::k16Bit:
51-
bytes_per_component = 2;
51+
// bytes_per_component = 2;
5252
FML_LOG(WARNING) << "16 bit textures not yet supported.";
5353
return nullptr;
5454
}
@@ -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)