summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-09 17:10:38 +0100
committerwm4 <wm4@nowhere>2015-12-09 17:10:38 +0100
commit47e6ef0bdf33a02249a3c6e615d40f0fd228a21d (patch)
tree95e26d0448c98b23963e85b9f0a6d23308e40f60 /video/out/opengl/video.c
parent6d36c432ab926cd0333b4a1fb61b77cab57c522f (diff)
downloadmpv-47e6ef0bdf33a02249a3c6e615d40f0fd228a21d.tar.bz2
mpv-47e6ef0bdf33a02249a3c6e615d40f0fd228a21d.tar.xz
vo_opengl: remove one more XYZ special-case
The XYZ colorspace on XYZ pixfmt is enforced in some sanitation routine.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 30147235c2..ff4c7a25aa 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -1476,13 +1476,8 @@ static void pass_convert_yuv(struct gl_video *p)
GLSLF("color = color.%s;\n", p->color_swizzle);
// Pre-colormatrix input gamma correction
- if (p->image_desc.flags & MP_IMGFLAG_XYZ) {
- cparams.colorspace = MP_CSP_XYZ;
-
- // Pre-colormatrix input gamma correction. Note that this results in
- // linear light
- GLSL(color.rgb = pow(color.rgb, vec3(2.6));)
- }
+ if (cparams.colorspace == MP_CSP_XYZ)
+ GLSL(color.rgb = pow(color.rgb, vec3(2.6));) // linear light
// Something already took care of expansion - disable it.
if (p->use_normalized_range)