0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
parent 46dc5709c8
commit cebb3ba645

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