From d8cd768ed078e875a05b08251ec94fdb7ee03d08 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Nov 2014 10:48:54 +0100 Subject: vo_opengl: don't reset user-set gamma when using vo_cmdline --- video/out/gl_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index a0f23e9157..27b4fe366d 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -2390,6 +2390,9 @@ void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts) p->scalers[n].name = p->opts.scalers[n]; } + if (!p->opts.gamma && p->video_eq.values[MP_CSP_EQ_GAMMA] != 0) + p->opts.gamma = 1.0f; + check_gl_features(p); reinit_rendering(p); } -- cgit v1.2.3