Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/imbuf/intern/colormanagement.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c
index 8f4fd2923f8..c127a7b719a 100644
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@ -1274,8 +1274,10 @@ static float *display_buffer_apply_get_linear_buffer(DisplayBufferThread *handle
memcpy(linear_buffer, handle->buffer, buffer_size * sizeof(float));
- IMB_colormanagement_transform(linear_buffer, width, height, channels,
- from_colorspace, to_colorspace, TRUE);
+ if (!is_data && !is_data_display) {
+ IMB_colormanagement_transform(linear_buffer, width, height, channels,
+ from_colorspace, to_colorspace, TRUE);
+ }
*is_straight_alpha = false;
}