shithub: imgtools

Download patch

ref: d676e0b57dfcb0ac609b2f819e60d72dfa9572a2
parent: d68ebdcbe4acc103eed7f146350a86a8d5255cfa
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Sep 3 18:49:13 EDT 2020

no idea

--- a/stb_image_resize.h
+++ b/stb_image_resize.h
@@ -1579,7 +1579,7 @@
                 {
                     int out_pixel_index = k * 3;
                     float coefficient = horizontal_coefficients[coefficient_group + k - n0];
-                    STBIR_ASSERT(coefficient != 0);
+                    //STBIR_ASSERT(coefficient != 0);
                     output_buffer[out_pixel_index + 0] += decode_buffer[in_pixel_index + 0] * coefficient;
                     output_buffer[out_pixel_index + 1] += decode_buffer[in_pixel_index + 1] * coefficient;
                     output_buffer[out_pixel_index + 2] += decode_buffer[in_pixel_index + 2] * coefficient;