summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-26 20:02:55 +0100
committerwm4 <wm4@nowhere>2014-11-26 20:02:55 +0100
commitcebb3ba64594316ca3e2b13ea1a1b715e018fb7b (patch)
tree025b4f68ae8d2f139d8d6cb2c1fc2423db7bfbcc
parent46dc5709c846c656d8d22f8e66eccbd8ab9f98f8 (diff)
downloadmpv-cebb3ba64594316ca3e2b13ea1a1b715e018fb7b.tar.bz2
mpv-cebb3ba64594316ca3e2b13ea1a1b715e018fb7b.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.c2
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