summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-21 07:47:42 +0100
committerwm4 <wm4@nowhere>2015-03-23 18:36:48 +0100
commitcfb5e0cea6508b087e32dd1a15f915d61214c8e1 (patch)
tree7c65b3e339d98b7a235e474042ba66e015b39502
parentf92c7fa807aa71f04de294afbe9745f7784a645c (diff)
downloadmpv-cfb5e0cea6508b087e32dd1a15f915d61214c8e1.tar.bz2
mpv-cfb5e0cea6508b087e32dd1a15f915d61214c8e1.tar.xz
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).
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
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