diff options
author | wm4 <wm4@nowhere> | 2014-11-26 20:02:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-26 20:02:55 +0100 |
commit | cebb3ba64594316ca3e2b13ea1a1b715e018fb7b (patch) | |
tree | 025b4f68ae8d2f139d8d6cb2c1fc2423db7bfbcc /video/out/gl_video.c | |
parent | 46dc5709c846c656d8d22f8e66eccbd8ab9f98f8 (diff) |
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.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |