Skip to content

Commit

Permalink
Merge pull request #53258 from boruok/3.x-fix-atlas-texture-get_data-…
Browse files Browse the repository at this point in the history
…crash
  • Loading branch information
akien-mga authored Sep 30, 2021
2 parents 23f21ac + 85dd970 commit 8d0b2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ bool AtlasTexture::has_filter_clip() const {
}

Ref<Image> AtlasTexture::get_data() const {
if (!atlas.is_valid()) {
if (!atlas.is_valid() || !atlas->get_data().is_valid()) {
return Ref<Image>();
}

Expand Down

0 comments on commit 8d0b2ed

Please sign in to comment.