diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-29 15:07:49 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-29 15:07:49 +0400 |
commit | 26963d65d8a4f7851c29deb0e6f7976ac1498134 (patch) | |
tree | ae9d14a6d86a41e9eaff60ab9a2f80e5ff7650ee /source | |
parent | b1b5274549fa98301be1248763db2f0aa4e0b4ef (diff) |
Fix for non-linear float buffer displaying on raw display
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 6 |
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; } |