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.
This commit is contained in:
Sergey Sharybin
2013-01-08 20:50:26 +00:00
parent 25cc959a9c
commit bb0319022d

View File

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