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:
wm4 2014-11-26 20:02:55 +01:00 committed by Alessandro Ghedini
parent 577378b827
commit 9bf66294f8
1 changed files with 1 additions and 1 deletions

View File

@ -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