1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 06:01:56 +00:00

vo_opengl: fix XYZ input gamma

This seems to have been a mistranslation from the original code, which
multiplied the gamma by 2.6 (*not* the color itself).
This commit is contained in:
Niklas Haas 2015-03-21 07:47:42 +01:00 committed by wm4
parent f92c7fa807
commit cfb5e0cea6

View File

@ -1348,7 +1348,7 @@ static void pass_convert_yuv(struct gl_video *p)
// Pre-colormatrix input gamma correction. Note that this results in
// linear light
GLSL(color.rgb *= vec3(2.6);)
GLSL(color.rgb = pow(color.rgb, vec3(2.6));)
}
// Conversion from Y'CbCr or other linear spaces to RGB