From 8a6a3e79de72ace68b31f60818084d438ebe3287 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Wed, 25 Jul 2012 23:28:17 +0000 Subject: 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. --- source/blender/imbuf/intern/filter.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/filter.c b/source/blender/imbuf/intern/filter.c index a0434691807..7804ee1fdf1 100644 --- a/source/blender/imbuf/intern/filter.c +++ b/source/blender/imbuf/intern/filter.c @@ -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); -- cgit v1.2.3