From bf1032a80ffb9e2540616750fa9518fef0087e16 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 12 Mar 2006 19:53:23 +0000 Subject: [PATCH] Scaling code in imbuf didn't like float buffers enough yet --- source/blender/imbuf/intern/scaling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index 5b6eb4aed97..75c063e41c8 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -610,7 +610,7 @@ static struct ImBuf *scaledowny(struct ImBuf *ibuf, int newy) static struct ImBuf *scaleupx(struct ImBuf *ibuf, int newx) { uchar *rect,*_newrect,*newrect; - float *rectf,*_newrectf,*newrectf; + float *rectf,*_newrectf=NULL,*newrectf; float sample,add; float val_a,nval_a,diff_a; float val_b,nval_b,diff_b; @@ -642,7 +642,7 @@ static struct ImBuf *scaleupx(struct ImBuf *ibuf, int newx) rect = (uchar *) ibuf->rect; rectf = (float *) ibuf->rect_float; newrect = _newrect; - newrectf = _newrectf = NULL; + newrectf = _newrectf; for (y = ibuf->y; y>0 ; y--){