summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-22 13:28:47 +0100
committerwm4 <wm4@nowhere>2015-03-22 13:28:47 +0100
commit612b8a8ab39eebc1cdf84a63cbd8d46c48eb4db1 (patch)
treedf7f81f987b842ef8898e59207ce91f75233d7ea
parent7205e75079b4445cddd4549820491bdba250bc02 (diff)
downloadmpv-612b8a8ab39eebc1cdf84a63cbd8d46c48eb4db1.tar.bz2
mpv-612b8a8ab39eebc1cdf84a63cbd8d46c48eb4db1.tar.xz
vo_opengl: fix video equalizer gamma controls
It was ignored.
-rw-r--r--video/out/gl_video.c5
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(&params, &p->video_eq);
+
+ p->user_gamma = 1.0 / (p->opts.gamma * params.gamma);
gl->BindFramebuffer(GL_FRAMEBUFFER, fbo);