Fix #110635: VSE: strip color multiplication affecting alpha channel #110984
|
@ -586,7 +586,6 @@ static void multibuf(ImBuf *ibuf, const float fmul)
|
|||
rt[0] = min_ii((imul * rt[0]) >> 8, 255);
|
||||
rt[1] = min_ii((imul * rt[1]) >> 8, 255);
|
||||
rt[2] = min_ii((imul * rt[2]) >> 8, 255);
|
||||
rt[3] = min_ii((imul * rt[3]) >> 8, 255);
|
||||
|
||||
rt += 4;
|
||||
}
|
||||
|
@ -597,15 +596,10 @@ static void multibuf(ImBuf *ibuf, const float fmul)
|
|||
rt_float[0] *= fmul;
|
||||
rt_float[1] *= fmul;
|
||||
rt_float[2] *= fmul;
|
||||
rt_float[3] *= fmul;
|
||||
|
||||
rt_float += 4;
|
||||
}
|
||||
}
|
||||
|
||||
if (ELEM(ibuf->planes, R_IMF_PLANES_BW, R_IMF_PLANES_RGB) && fmul < 1.0f) {
|
||||
ibuf->planes = R_IMF_PLANES_RGBA;
|
||||
}
|
||||
}
|
||||
|
||||
static ImBuf *input_preprocess(const SeqRenderData *context,
|
||||
|
|
Loading…
Reference in New Issue