1
1

Fix T91911: error in image dithering code after recent changes

Thanks to Patrik Olsson for spotting this.
This commit is contained in:
2021-10-04 12:09:59 +02:00
parent dc4c2815a6
commit 8ca7250982

View File

@@ -329,7 +329,7 @@ MINLINE float dither_random_value(float s, float t)
hash0 -= floorf(hash0);
hash1 -= floorf(hash1);
/* Convert uniform distribution into triangle-shaped distribution. */
return hash0 + hash0 - 0.5f;
return hash0 + hash1 - 0.5f;
}
MINLINE void float_to_byte_dither_v3(