mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
46dc5709c8
commit
cebb3ba645
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue