many fixes to image loader, voxel cone tracing, etc.
This commit is contained in:
parent
e79d7149ea
commit
8a1097a224
5 changed files with 10 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue