diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-09 00:50:26 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-09 00:50:26 +0400 |
commit | bb0319022d822c7fb12296e48888fc1f25b56f53 (patch) | |
tree | 7b39b297f4ac0b2ff5d5192745bc959d98a85709 /source/blender/imbuf | |
parent | 25cc959a9ceaa8f4cb2f9508efdb3621c4516246 (diff) |
Fix #33809: Wrong exposure affect after alpha premul changes
Exposure shouldn't affect on alpha channel, only RGB shall be
affected by exposure.
Was a regression since recent alpha premul pipeline changes.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index bcfddfe425a..d823e7c4882 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -698,7 +698,7 @@ static OCIO_ConstProcessorRcPtr *create_display_buffer_processor(const char *vie if (exposure != 0.0f) { OCIO_MatrixTransformRcPtr *mt; float gain = powf(2.0f, exposure); - const float scale4f[] = {gain, gain, gain, gain}; + const float scale4f[] = {gain, gain, gain, 1.0f}; float m44[16], offset4[4]; OCIO_matrixTransformScale(m44, offset4, scale4f); |