diff options
author | Niklas Haas <git@nand.wakku.to> | 2014-06-06 14:56:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-22 19:07:02 +0200 |
commit | 856b57e41846490e63a17e05bf399356e2388b1f (patch) | |
tree | c36287be95d327ea974238ac54fdea257c4feed6 /video/out/gl_video.c | |
parent | 664f8e9832e7ee9835816621faf4b57ffbcc8628 (diff) | |
download | mpv-856b57e41846490e63a17e05bf399356e2388b1f.tar.bz2 mpv-856b57e41846490e63a17e05bf399356e2388b1f.tar.xz |
vo_opengl: Make approx-gamma affect OSD/sub
Close #837
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 52ad1a66f4..2c6e2d35b7 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -926,7 +926,10 @@ static void compile_shaders(struct gl_video *p) shader_def_opt(&header, "USE_ALPHA", p->has_alpha); char *header_osd = talloc_strdup(tmp, header); - shader_def_opt(&header_osd, "USE_OSD_LINEAR_CONV", use_cms); + shader_def_opt(&header_osd, "USE_OSD_LINEAR_CONV_APPROX", + use_cms && p->opts.approx_gamma); + shader_def_opt(&header_osd, "USE_OSD_LINEAR_CONV_BT2020", + use_cms && !p->opts.approx_gamma); shader_def_opt(&header_osd, "USE_OSD_CMS_MATRIX", use_cms_matrix); shader_def_opt(&header_osd, "USE_OSD_3DLUT", p->use_lut_3d); // 3DLUT overrides SRGB |