forked from bartvdbraak/blender
Fix [#31609] save .EXR defaults to uncompressed, causes segfault.
IMB_filterN now generates 32-bit int representation of float images for mipmap generation if such representation does not exist.
This commit is contained in:
parent
be23539a94
commit
8a6a3e79de
@ -211,6 +211,10 @@ void IMB_filterN(ImBuf *out, ImBuf *in)
|
||||
|
||||
rowlen = in->x;
|
||||
|
||||
/* generate 32-bit version for float images if it is not already generated by other space */
|
||||
if (in->rect == NULL)
|
||||
IMB_rect_from_float(in);
|
||||
|
||||
for (y = 0; y < in->y; y++) {
|
||||
/* setup rows */
|
||||
row2 = (char *)(in->rect + y * rowlen);
|
||||
|
Loading…
Reference in New Issue
Block a user