Fix T91911: error in image dithering code after recent changes

Thanks to Patrik Olsson for spotting this.
This commit is contained in:
Brecht Van Lommel 2021-10-04 12:09:59 +02:00
parent dc4c2815a6
commit 8ca7250982
Notes: blender-bot 2023-02-14 00:10:08 +01:00
Referenced by issue #91911, Bug in source code source/blender/blenlib/intern/math_color_inline.c
1 changed files with 1 additions and 1 deletions

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(