diff options
author | Ton Roosendaal <ton@blender.org> | 2006-03-12 22:53:23 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-03-12 22:53:23 +0300 |
commit | bf1032a80ffb9e2540616750fa9518fef0087e16 (patch) | |
tree | 463d3865171f6219fad3ae5e9f93b2224fe29c8b /source/blender/imbuf/intern/scaling.c | |
parent | e058a506fda039c0c2795374f3b559d266b3ba53 (diff) |
Scaling code in imbuf didn't like float buffers enough yet
Diffstat (limited to 'source/blender/imbuf/intern/scaling.c')
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 4 |
1 files 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--){ |