bkaradzic / bimg

Image library.
BSD 2-Clause "Simplified" License
327 stars 268 forks source link

resize image with some resolution(like: 224x323) will casue assert in stb_image_resize.h #87

Closed junjie020 closed 7 months ago

junjie020 commented 7 months ago

Build a texturec in debug mode, and use this command line:

texturec.exe -f d:/test.png -o d:/main.dds -t BC3 -q fastest --max 256 -m

It will cause assert in stb_image_resize.h: https://github.com/bkaradzic/bimg/blob/master/3rdparty/stb/stb_image_resize.h#L1106

I try to update stb_image_resize.h from: https://github.com/nothings/stb/blob/master/deprecated/stb_image_resize.h

It fix this issue.

test

bkaradzic commented 7 months ago

Updated: https://github.com/bkaradzic/bimg/commit/02356d893f7969172ef54642faf1b73d6895b48e