Open luboslenco opened 4 years ago
Change stb to directly decode into the provided memory and only use the buffer for temporary things.
Kinc image loading: https://github.com/Kode/Kinc/blob/master/Sources/kinc/image.c
stb_image lib: https://github.com/Kode/Kinc/blob/master/Sources/kinc/libs/stb_image.h
Related: https://github.com/nothings/stb/issues/58
This is still an issue - if someone already had a look then posting any findings is welcome.
Change stb to directly decode into the provided memory and only use the buffer for temporary things.
Kinc image loading: https://github.com/Kode/Kinc/blob/master/Sources/kinc/image.c
stb_image lib: https://github.com/Kode/Kinc/blob/master/Sources/kinc/libs/stb_image.h
Related: https://github.com/nothings/stb/issues/58