diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-10-04 13:09:59 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-10-04 14:58:37 +0300 |
commit | 8ca7250982087c137370f72c6b2de91c7ce09e91 (patch) | |
tree | e5b52fccd2b802ccbba3b61dfed19021c10c21ae /source/blender/blenlib | |
parent | dc4c2815a6f14eca60b2d5fdb3ec309a950bb0fc (diff) |
Fix T91911: error in image dithering code after recent changes
Thanks to Patrik Olsson for spotting this.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_color_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c index 8b3e3b11cff..24c4143e587 100644 --- a/source/blender/blenlib/intern/math_color_inline.c +++ b/source/blender/blenlib/intern/math_color_inline.c @@ -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( |