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
This commit is contained in:
Brecht Van Lommel
2025-06-11 16:10:03 +02:00
committed by Brecht Van Lommel
parent 7f380e0644
commit 697d13bbfc

View File

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