fix [#32672] Crash when rendering environment map
own regression since 2.63
This commit is contained in:
@@ -1054,7 +1054,9 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
|
||||
|
||||
if ((ibuf == NULL) || ((ibuf->rect == NULL) && (ibuf->rect_float == NULL))) return retval;
|
||||
|
||||
ima->flag |= IMA_USED_FOR_RENDER;
|
||||
if (ima) {
|
||||
ima->flag |= IMA_USED_FOR_RENDER;
|
||||
}
|
||||
|
||||
/* mipmap test */
|
||||
image_mipmap_test(tex, ibuf);
|
||||
|
||||
Reference in New Issue
Block a user