diff options
author | wm4 <wm4@nowhere> | 2015-03-22 13:28:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-22 13:28:47 +0100 |
commit | 612b8a8ab39eebc1cdf84a63cbd8d46c48eb4db1 (patch) | |
tree | df7f81f987b842ef8898e59207ce91f75233d7ea | |
parent | 7205e75079b4445cddd4549820491bdba250bc02 (diff) |
vo_opengl: fix video equalizer gamma controls
It was ignored.
-rw-r--r-- | video/out/gl_video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 9674ac58ee..292e9030a3 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1842,7 +1842,10 @@ void gl_video_render_frame(struct gl_video *p, int fbo, struct frame_timing *t) GL *gl = p->gl; struct video_image *vimg = &p->image; - p->user_gamma = 1.0 / p->opts.gamma; + struct mp_csp_params params; + mp_csp_copy_equalizer_values(¶ms, &p->video_eq); + + p->user_gamma = 1.0 / (p->opts.gamma * params.gamma); gl->BindFramebuffer(GL_FRAMEBUFFER, fbo); |