mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Image: Add static is_format_compressed function.
This commit is contained in:
@@ -41,7 +41,7 @@ void _compress_astc(Image *r_img, Image::ASTCFormat p_format) {
|
||||
// TODO: See how to handle lossy quality.
|
||||
|
||||
Image::Format img_format = r_img->get_format();
|
||||
if (img_format >= Image::FORMAT_DXT1) {
|
||||
if (Image::is_format_compressed(img_format)) {
|
||||
return; // Do not compress, already compressed.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user