Fix T91911: error in image dithering code after recent changes
Thanks to Patrik Olsson for spotting this.
This commit is contained in:
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
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue