Fix out-of-date assert
@@ -807,7 +807,9 @@ void compute_ideal_weights_for_decimation_table(
// TODO: Use SIMD copies?
for (int i = 0; i < texel_count_simd; i++)
{
- assert(i == dt.weight_texel[0][i]);
+ // Assert it's an identity map for valid texels, and last valid value for any overspill
+ assert((i < texel_count) && (i == dt.weight_texel[0][i]) ||
+ (i >= texel_count) && (texel_count - 1 == dt.weight_texel[0][i]));
weight_set[i] = eai_in.weights[i];
weights[i] = eai_in.weight_error_scale[i];
