Merge pull request #57819 from Jojox/fix_padded_texture_format

This commit is contained in:
Rémi Verschelde 2022-02-08 22:34:23 +01:00 committed by GitHub
commit d64b27e510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {