From a3e461ce1b863b783219c5488182a4aa66b3e9f7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Jan 2010 10:48:41 +0000 Subject: - player building again - fix for compiler warnigns - bpath reporting was incorrect --- source/blender/imbuf/intern/divers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/imbuf/intern') 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]}; -- cgit v1.2.3