Fix for crash in imbuf code under certain circumstances on linux.

This commit is contained in:
Joshua Leung 2010-02-28 02:17:07 +00:00
parent 4ad5d16053
commit e51bcbae62

@ -270,7 +270,7 @@ void IMB_float_from_rect(struct ImBuf *ibuf)
if(to==NULL) return;
if(tof==NULL) {
imb_addrectfloatImBuf(ibuf);
if (imb_addrectfloatImBuf(ibuf) == 0) return;
tof = ibuf->rect_float;
}