diff options
author | JoJoX <jonas.lhoste@gmail.com> | 2022-02-08 15:27:44 -0500 |
---|---|---|
committer | JoJoX <jonas.lhoste@gmail.com> | 2022-02-08 15:27:44 -0500 |
commit | a6c77c7c5a5a9f2f2d990679c7a4d2efa8749918 (patch) | |
tree | 9f0710c0b599f9c3d5c4ea336f0ca8aef5fcd12d /scene/resources | |
parent | 592e92d938ce4eeb053e208dc673598d9aaa727a (diff) |
Use source image format when creating padded texture
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/tile_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 1f77cc0570..1e84947b87 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -4434,7 +4434,7 @@ void TileSetAtlasSource::_update_padded_texture() { Ref<Image> image; image.instantiate(); - image->create(size.x, size.y, false, Image::FORMAT_RGBA8); + image->create(size.x, size.y, false, src->get_format()); for (KeyValue<Vector2i, TileAlternativesData> kv : tiles) { for (int frame = 0; frame < (int)kv.value.animation_frames_durations.size(); frame++) { |