1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-02 12:20:57 +00:00

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.
This commit is contained in:
Niklas Haas 2014-03-05 02:21:25 +01:00 committed by wm4
parent 7221d96ba3
commit 76554ca62a

View File

@ -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);