1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Image: Include S3TC compression via Squish in non-tools build

We already build Squish in templates build for S3TC decompression,
so we can as well expose the compression feature.

Fixes #25640.
This commit is contained in:
Rémi Verschelde
2020-01-13 15:58:49 +01:00
parent 087ffc8b5a
commit c7b701dfd2
6 changed files with 3 additions and 9 deletions

View File

@@ -73,7 +73,6 @@ void image_decompress_squish(Image *p_image) {
p_image->create(p_image->get_width(), p_image->get_height(), p_image->has_mipmaps(), target_format, data);
}
#ifdef TOOLS_ENABLED
void image_compress_squish(Image *p_image, float p_lossy_quality, Image::CompressSource p_source) {
if (p_image->get_format() >= Image::FORMAT_DXT1)
@@ -203,4 +202,3 @@ void image_compress_squish(Image *p_image, float p_lossy_quality, Image::Compres
p_image->create(p_image->get_width(), p_image->get_height(), p_image->has_mipmaps(), target_format, data);
}
}
#endif