Fix T45328: Crash upon finishing render with 'Cache Result' enabled

This commit is contained in:
Sergey Sharybin 2015-07-06 12:34:40 +02:00
parent be07ab58c6
commit 266459c7da
Notes: blender-bot 2023-02-14 09:29:42 +01:00
Referenced by issue #45328, Crash upon finishing render with 'Cache Result' enabled
1 changed files with 1 additions and 1 deletions

View File

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