diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-01-10 18:24:18 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-01-10 18:24:18 +0400 |
commit | 545dc90a7f660709abdde90078b84f4ff5479f3c (patch) | |
tree | 903991d23791fba949a998fdbe5aced778d0b467 /source/blender/imbuf/intern | |
parent | 84c6daedd7f4f99aacac5e8da1c37ac91ab048f9 (diff) |
Fix regressions in the color management / dither patch.
Diffstat (limited to 'source/blender/imbuf/intern')
-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) |