diff options
author | elasota <ejlasota@gmail.com> | 2018-08-22 12:05:25 -0400 |
---|---|---|
committer | elasota <ejlasota@gmail.com> | 2018-08-22 12:05:25 -0400 |
commit | 4cd866685ea7f7dff569d71ae53392abb7a67df1 (patch) | |
tree | 9cee1228ffea128fe9dd381084efa0f3dedaa85f /core/image.cpp | |
parent | 334acc017ff1f89c05a8c9dc362c584bc843c182 (diff) | |
download | redot-engine-4cd866685ea7f7dff569d71ae53392abb7a67df1.tar.gz |
Use cluster fit at higher quality levels
Diffstat (limited to 'core/image.cpp')
-rw-r--r-- | core/image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/image.cpp b/core/image.cpp index e4573c5ebb..bd6468278e 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -1685,7 +1685,7 @@ Error Image::compress(CompressMode p_mode, CompressSource p_source, float p_loss case COMPRESS_S3TC: { ERR_FAIL_COND_V(!_image_compress_bc_func, ERR_UNAVAILABLE); - _image_compress_bc_func(this, p_source); + _image_compress_bc_func(this, p_lossy_quality, p_source); } break; case COMPRESS_PVRTC2: { @@ -2048,7 +2048,7 @@ ImageMemLoadFunc Image::_png_mem_loader_func = NULL; ImageMemLoadFunc Image::_jpg_mem_loader_func = NULL; ImageMemLoadFunc Image::_webp_mem_loader_func = NULL; -void (*Image::_image_compress_bc_func)(Image *, Image::CompressSource) = NULL; +void (*Image::_image_compress_bc_func)(Image *, float, Image::CompressSource) = NULL; void (*Image::_image_compress_bptc_func)(Image *, float, Image::CompressSource) = NULL; void (*Image::_image_compress_pvrtc2_func)(Image *) = NULL; void (*Image::_image_compress_pvrtc4_func)(Image *) = NULL; @@ -2569,7 +2569,7 @@ void Image::_bind_methods() { BIND_ENUM_CONSTANT(COMPRESS_SOURCE_NORMAL); } -void Image::set_compress_bc_func(void (*p_compress_func)(Image *, CompressSource)) { +void Image::set_compress_bc_func(void (*p_compress_func)(Image *, float, CompressSource)) { _image_compress_bc_func = p_compress_func; } |