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 <brechtvanlommel@pandora.be>2012-01-10 18:24:18 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-01-10 18:24:18 +0400
commit545dc90a7f660709abdde90078b84f4ff5479f3c (patch)
tree903991d23791fba949a998fdbe5aced778d0b467 /source/blender/imbuf
parent84c6daedd7f4f99aacac5e8da1c37ac91ab048f9 (diff)
Fix regressions in the color management / dither patch.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/divers.c6
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)