diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-06 13:34:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-06 13:35:11 +0300 |
commit | 266459c7da24bd54fbe20a6eac8e6db4f5ac7be7 (patch) | |
tree | 58402f79dbdfff25faa3536fa74b243f4ef4d326 /source/blender/render/intern | |
parent | be07ab58c66edf7368729c286d2dc6afaf76a4b8 (diff) |
Fix T45328: Crash upon finishing render with 'Cache Result' enabled
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/source/render_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/render_result.c b/source/blender/render/intern/source/render_result.c index 19beec9a6fe..cfbeb204994 100644 --- a/source/blender/render/intern/source/render_result.c +++ b/source/blender/render/intern/source/render_result.c @@ -1040,7 +1040,7 @@ bool RE_WriteRenderResult(ReportList *reports, RenderResult *rr, const char *fil size_t width, height; const bool is_mono = view && !multiview; - const bool use_half_float = (imf->depth == R_IMF_CHAN_DEPTH_16); + const bool use_half_float = (imf != NULL) ? (imf->depth == R_IMF_CHAN_DEPTH_16) : false; width = rr->rectx; height = rr->recty; |