Fix mistake in previous commit

Was copying things in other way around and was not performing
proper color space conversion.
This commit is contained in:
Sergey Sharybin 2016-09-15 16:34:10 +02:00
parent 2d81e88865
commit 04e2e4fdc1
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static void add_gpencil_renderpass(OGLRender *oglrender, RenderResult *rr, Rende
if (pixSrc[3] > 0) {
float *pixDest = dest + 4 * (rectx * y + x);
float float_src[4];
F4TOCHAR4(float_src, pixSrc);
srgb_to_linearrgb_uchar4(float_src, pixSrc);
addAlphaOverFloat(pixDest, float_src);
}
}