diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-11 13:48:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-11 13:48:41 +0300 |
commit | a3e461ce1b863b783219c5488182a4aa66b3e9f7 (patch) | |
tree | 52ed71cfdebdc4f3b11be7daa641b18572da942d /source/blender/imbuf/intern/divers.c | |
parent | 49fc1f9860b5fe3ba628f761a00615a24e054a14 (diff) |
- player building again
- fix for compiler warnigns
- bpath reporting was incorrect
Diffstat (limited to 'source/blender/imbuf/intern/divers.c')
-rw-r--r-- | source/blender/imbuf/intern/divers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index bcf913e6caf..93bfec823e9 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -180,7 +180,7 @@ void IMB_rect_from_float(struct ImBuf *ibuf) { /* quick method to convert floatbuf to byte */ float *tof = (float *)ibuf->rect_float; - int do_dither = ibuf->dither != 0.f; +// int do_dither = ibuf->dither != 0.f; float dither= ibuf->dither / 255.0; float srgb[4]; int i, channels= ibuf->channels; @@ -241,7 +241,6 @@ void IMB_rect_from_float(struct ImBuf *ibuf) } else { if (dither != 0.f) { - float col[3]; for (i = ibuf->x * ibuf->y; i > 0; i--, to+=4, tof+=4) { const float d = (BLI_frand()-0.5)*dither; const float col[4] = {d+tof[0], d+tof[1], d+tof[2], d+tof[3]}; |