Fix T45328: Crash upon finishing render with 'Cache Result' enabled
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue