diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-08 22:34:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 22:34:23 +0100 |
commit | d64b27e510d3bda72730717f1bce0f5a3470a689 (patch) | |
tree | 3fec27a6d1d5e38114ba0bdbe5760532190e1a1f /scene | |
parent | a5963500b9b1b4cc965c2ff14d1f50ca955f4964 (diff) | |
parent | a6c77c7c5a5a9f2f2d990679c7a4d2efa8749918 (diff) |
Merge pull request #57819 from Jojox/fix_padded_texture_format
Diffstat (limited to 'scene')
-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++) { |