summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2014-03-05 02:21:25 +0100
committerwm4 <wm4@nowhere>2014-03-10 22:56:25 +0100
commit76554ca62a27d2f3dfdff38dc8675fd43bc6ea49 (patch)
treefb379e850744be998574e5de35038d250ca0254d /video
parent7221d96ba311404f54752937253f210fb53623ea (diff)
downloadmpv-76554ca62a27d2f3dfdff38dc8675fd43bc6ea49.tar.bz2
mpv-76554ca62a27d2f3dfdff38dc8675fd43bc6ea49.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video_shaders.glsl2
1 files changed, 1 insertions, 1 deletions
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);