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

vo_opengl: remove one more XYZ special-case

The XYZ colorspace on XYZ pixfmt is enforced in some sanitation routine.
This commit is contained in:
wm4 2015-12-09 17:10:38 +01:00
parent 6d36c432ab
commit 47e6ef0bdf

View File

@ -1476,13 +1476,8 @@ static void pass_convert_yuv(struct gl_video *p)
GLSLF("color = color.%s;\n", p->color_swizzle); GLSLF("color = color.%s;\n", p->color_swizzle);
// Pre-colormatrix input gamma correction // Pre-colormatrix input gamma correction
if (p->image_desc.flags & MP_IMGFLAG_XYZ) { if (cparams.colorspace == MP_CSP_XYZ)
cparams.colorspace = MP_CSP_XYZ; GLSL(color.rgb = pow(color.rgb, vec3(2.6));) // linear light
// Pre-colormatrix input gamma correction. Note that this results in
// linear light
GLSL(color.rgb = pow(color.rgb, vec3(2.6));)
}
// Something already took care of expansion - disable it. // Something already took care of expansion - disable it.
if (p->use_normalized_range) if (p->use_normalized_range)