When imbuf has both float and byte rects, the scale-fast function crashed.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user