Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-10-04 13:09:59 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-10-04 14:58:37 +0300
commit8ca7250982087c137370f72c6b2de91c7ce09e91 (patch)
treee5b52fccd2b802ccbba3b61dfed19021c10c21ae
parentdc4c2815a6f14eca60b2d5fdb3ec309a950bb0fc (diff)
Fix T91911: error in image dithering code after recent changes
Thanks to Patrik Olsson for spotting this.
-rw-r--r--source/blender/blenlib/intern/math_color_inline.c2
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(