fix compilation of stb_image_write.h with gcc -O3
When compiling with -O3, gcc would complain that 'linear' might not be initialized if comp is superior to 4. In fact passing a value > 4 is an error anyway, but gcc does not know that. I changed the switch case to support comp > 4. I don't think it should affect the performances.
Showing
想要评论请 注册 或 登录