fix [#32672] Crash when rendering environment map

own regression since 2.63
This commit is contained in:
Campbell Barton
2012-09-27 02:56:46 +00:00
parent c5baae40f7
commit 4e99ff0481

View File

@@ -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);