diff options
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/divers.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c index 7e086716d3e..a8ca282de66 100644 --- a/source/blender/imbuf/intern/divers.c +++ b/source/blender/imbuf/intern/divers.c @@ -645,15 +645,19 @@ void IMB_convert_profile(ImBuf *ibuf, int profile) profile_from = IB_PROFILE_LINEAR_RGB; else if(ELEM(ibuf->profile, IB_PROFILE_SRGB, IB_PROFILE_NONE)) profile_from = IB_PROFILE_SRGB; - else + else { BLI_assert(0); + profile_from = IB_PROFILE_SRGB; /* dummy, should never happen */ + } if(profile == IB_PROFILE_LINEAR_RGB) profile_to = IB_PROFILE_LINEAR_RGB; else if(ELEM(profile, IB_PROFILE_SRGB, IB_PROFILE_NONE)) profile_to = IB_PROFILE_SRGB; - else + else { BLI_assert(0); + profile_to = IB_PROFILE_SRGB; /* dummy, should never happen */ + } /* do conversion */ if(ibuf->rect_float) { |