mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 21:52:12 +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:
parent
f92c7fa807
commit
cfb5e0cea6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user