From cfb5e0cea6508b087e32dd1a15f915d61214c8e1 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 21 Mar 2015 07:47:42 +0100 Subject: 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). --- video/out/gl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 715e5f8d63..07b3b9ebb6 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -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 -- cgit v1.2.3