From 76554ca62a27d2f3dfdff38dc8675fd43bc6ea49 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 5 Mar 2014 02:21:25 +0100 Subject: vo_opengl: Use bt709_expand on OSD for :srgb This affects the OSD only when :srgb is enabled, this still used the old gamma approximation of 2.22 previously. --- video/out/gl_video_shaders.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl index 8f15508b17..cd7e051dcd 100644 --- a/video/out/gl_video_shaders.glsl +++ b/video/out/gl_video_shaders.glsl @@ -84,7 +84,7 @@ void main() { #ifdef USE_OSD_LINEAR_CONV // If no 3dlut is being used, we need to pull up to linear light for // the sRGB function. *IF* 3dlut is used, we do not. - color.rgb = pow(color.rgb, vec3(1.0/0.45)); + color.rgb = bt709_expand(color.rgb); #endif #ifdef USE_OSD_3DLUT color = vec4(texture3D(lut_3d, color.rgb).rgb, color.a); -- cgit v1.2.3