From 369a5cc29e80d0ac30f9db444f2c0f9c1da32e01 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 2 Nov 2010 13:12:30 +0000 Subject: fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature. --- source/blender/imbuf/intern/divers.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index dfe316628f6..245dcfb7fae 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -163,7 +163,13 @@ void IMB_rect_from_float(struct ImBuf *ibuf) if (dither != 0.f) { 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]}; + float col[4]; + + col[0]= d + tof[0]; + col[1]= d + tof[1]; + col[2]= d + tof[2]; + col[3]= d + tof[3]; + to[0] = FTOCHAR(col[0]); to[1] = FTOCHAR(col[1]); to[2] = FTOCHAR(col[2]); -- cgit v1.2.3