diff options
author | wm4 <wm4@nowhere> | 2014-11-26 20:02:55 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-01 21:05:20 +0100 |
commit | 9bf66294f8acb2133cb4d426ae5eea9b462d246d (patch) | |
tree | 6969345aadd89c60432424d99e35ef6f518f7d40 | |
parent | 577378b82764e28c0450d359f48e71f95b2709fc (diff) | |
download | mpv-9bf66294f8acb2133cb4d426ae5eea9b462d246d.tar.bz2 mpv-9bf66294f8acb2133cb4d426ae5eea9b462d246d.tar.xz |
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.
-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 |