Use source image format when creating padded texture
This commit is contained in:
parent
592e92d938
commit
a6c77c7c5a
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue