mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #57819 from Jojox/fix_padded_texture_format
This commit is contained in:
commit
d64b27e510
@ -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 New Issue
Block a user