When imbuf has both float and byte rects, the scale-fast function crashed.

This commit is contained in:
Ton Roosendaal
2006-03-09 11:25:20 +00:00
parent ef346ebd33
commit 89fe29055b

View File

@@ -972,6 +972,7 @@ struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, short newx, short newy)
}
if (do_float) {
ofsx = 32768;
for (x = newx ; x>0 ; x--){
*newrectf++ = rectf[ofsx >> 16];
ofsx += stepx;