summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-12 14:47:30 +0100
committerwm4 <wm4@nowhere>2015-12-12 14:47:30 +0100
commitf24ba544cd03261f25dab8ab564d832c28233079 (patch)
treec200b7b66e8d44328ebcb326950abef1fd83efa5 /video/out/opengl/video.c
parent000285ee8e077f5b0cd391ffc30cc71e5a3c728d (diff)
downloadmpv-f24ba544cd03261f25dab8ab564d832c28233079.tar.bz2
mpv-f24ba544cd03261f25dab8ab564d832c28233079.tar.xz
vo_opengl: enable brightness/contrast controls for RGB
Why not. Also, instead of disabling hue/saturation for RGB, just don't apply them. (They don't make sense for conversion matrixes other than YUV, but I can't be bothered to keep the fine-grained disabling of UI controls either.)
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index ff4c7a25aa..d2fb4ac38c 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -753,7 +753,7 @@ static void init_video(struct gl_video *p)
mp_image_params_guess_csp(&p->image_params);
int eq_caps = MP_CSP_EQ_CAPS_GAMMA;
- if (p->is_yuv && p->image_params.colorspace != MP_CSP_BT_2020_C)
+ if (p->image_params.colorspace != MP_CSP_BT_2020_C)
eq_caps |= MP_CSP_EQ_CAPS_COLORMATRIX;
if (p->image_desc.flags & MP_IMGFLAG_XYZ)
eq_caps |= MP_CSP_EQ_CAPS_BRIGHTNESS;