diff options
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/divers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index de19f8e6ea6..442309ccf7a 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -188,9 +188,9 @@ MINLINE void ushort_to_byte_v4(uchar b[4], const unsigned short us[4]) MINLINE void ushort_to_byte_dither_v4(uchar b[4], const unsigned short us[4], DitherContext *di) { b[0]= dither_value(us[0], di, 0); - b[1]= dither_value(us[0], di, 1); - b[2]= dither_value(us[0], di, 2); - b[3]= dither_value(us[0], di, 3); + b[1]= dither_value(us[1], di, 1); + b[2]= dither_value(us[2], di, 2); + b[3]= dither_value(us[3], di, 3); } MINLINE void float_to_byte_dither_v4(uchar b[4], const float f[4], DitherContext *di) |