diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2012-07-26 03:28:17 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2012-07-26 03:28:17 +0400 |
commit | 8a6a3e79de72ace68b31f60818084d438ebe3287 (patch) | |
tree | c4bc12d09577fbcafa16d90214017f1594d6b7df | |
parent | be23539a9469e24caf65b192779cedac9ad2cd6c (diff) |
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.
-rw-r--r-- | source/blender/imbuf/intern/filter.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |