summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-02 22:08:41 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-02 22:08:41 -0300
commit8a1097a2243a9829d5d7e61ef10133f8096aa5e2 (patch)
tree2ec55a650b676975e6ef2ed60e25d68307381269 /modules
parente79d7149ea751e32312cb8625548085d4537c591 (diff)
many fixes to image loader, voxel cone tracing, etc.
Diffstat (limited to 'modules')
-rw-r--r--modules/squish/image_compress_squish.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/squish/image_compress_squish.cpp b/modules/squish/image_compress_squish.cpp
index efed0b8665..e927f1ceaa 100644
--- a/modules/squish/image_compress_squish.cpp
+++ b/modules/squish/image_compress_squish.cpp
@@ -153,8 +153,8 @@ void image_compress_squish(Image *p_image, bool p_srgb) {
int bh = h % 4 != 0 ? h + (4 - h % 4) : h;
int src_ofs = p_image->get_mipmap_offset(i);
- squish::CompressImage(&rb[src_ofs], bw, bh, &wb[dst_ofs], squish_comp);
- dst_ofs += (MAX(4, w) * MAX(4, h)) >> shift;
+ squish::CompressImage(&rb[src_ofs], w, h, &wb[dst_ofs], squish_comp);
+ dst_ofs += (MAX(4, bw) * MAX(4, bh)) >> shift;
w >>= 1;
h >>= 1;
}