diff options
-rw-r--r-- | source/blender/imbuf/intern/divers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index ff86fbfdd38..f23748e59a2 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -104,7 +104,7 @@ MINLINE void float_to_byte_dither_v4( bool IMB_alpha_affects_rgb(const ImBuf *ibuf) { - return (ibuf->flags & IB_alphamode_channel_packed) == 0; + return ibuf && (ibuf->flags & IB_alphamode_channel_packed) == 0; } void IMB_buffer_byte_from_float(uchar *rect_to, |