From 9bf66294f8acb2133cb4d426ae5eea9b462d246d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 26 Nov 2014 20:02:55 +0100 Subject: [PATCH] vo_opengl: fix srgb with certain inputs Sampling from the source texture and scaling must always be done separately in this mode. Fix suggested by haasn. Still looks a bit wrong, though. --- video/out/gl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 8d8dedebe5..f03db7e242 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1018,7 +1018,7 @@ static void compile_shaders(struct gl_video *p) // Don't sample from input video textures before converting the input to // linear light. - if (use_input_gamma || use_conv_gamma) + if (use_input_gamma || use_conv_gamma || convert_to_linear_gamma) use_indirect = true; // It doesn't make sense to scale the chroma with cscale in the 1. scale