[vlc-devel] [PATCH] opengl: use the default monitor target if there's none set by the user
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 29 10:26:01 CET 2019
---
modules/video_output/opengl/fragment_shaders.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
index f58b4467b6..f91738c70b 100644
--- a/modules/video_output/opengl/fragment_shaders.c
+++ b/modules/video_output/opengl/fragment_shaders.c
@@ -564,6 +564,8 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
struct pl_color_space dst_space = pl_color_space_unknown;
dst_space.primaries = var_InheritInteger(tc->gl, "target-prim");
dst_space.transfer = var_InheritInteger(tc->gl, "target-trc");
+ if (dst_space.primaries == PL_COLOR_PRIM_UNKNOWN && dst_space.transfer == PL_COLOR_TRC_UNKNOWN)
+ dst_space = pl_color_space_monitor;
pl_shader_color_map(sh, &color_params,
vlc_placebo_ColorSpace(&tc->fmt),
--
2.17.1
More information about the vlc-devel
mailing list