mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Squish decompression, closes #18109
This commit is contained in:
parent
9e85d17241
commit
f141f747de
3 changed files with 14 additions and 3 deletions
|
@ -1766,6 +1766,15 @@ int Image::get_image_required_mipmaps(int p_width, int p_height, Format p_format
|
|||
return mm;
|
||||
}
|
||||
|
||||
int Image::get_image_mipmap_offset(int p_width, int p_height, Format p_format, int p_mipmap) {
|
||||
|
||||
if (p_mipmap <= 0) {
|
||||
return 0;
|
||||
}
|
||||
int mm;
|
||||
return _get_dst_image_size(p_width, p_height, p_format, mm, p_mipmap - 1);
|
||||
}
|
||||
|
||||
bool Image::is_compressed() const {
|
||||
return format > FORMAT_RGBE9995;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue