From 697d13bbfcc39dc6e6e6e7190cd548a570c00a17 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 11 Jun 2025 16:10:03 +0200 Subject: [PATCH] Fix #139918: Color management assert displaying render This buffer can not just be scene linear, but data too. Pull Request: https://projects.blender.org/blender/blender/pulls/140141 --- source/blender/draw/engines/image/image_buffer_cache.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/image/image_buffer_cache.hh b/source/blender/draw/engines/image/image_buffer_cache.hh index 87e2ad60172..03c6339b062 100644 --- a/source/blender/draw/engines/image/image_buffer_cache.hh +++ b/source/blender/draw/engines/image/image_buffer_cache.hh @@ -74,8 +74,10 @@ struct FloatBufferCache { if (image_buffer->float_buffer.data != nullptr) { BLI_assert_msg( IMB_colormanagement_space_name_is_scene_linear( - IMB_colormanagement_get_float_colorspace(image_buffer)), - "Expected float buffer to be scene_linear - if there are code paths where this " + IMB_colormanagement_get_float_colorspace(image_buffer)) || + IMB_colormanagement_space_name_is_data( + IMB_colormanagement_get_float_colorspace(image_buffer)), + "Expected float buffer to be scene_linear or data - if there are code paths where this " "isn't the case we should convert those and add to the FloatBufferCache as well."); return image_buffer; }