1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

vo_opengl: fix video equalizer gamma controls

It was ignored.
This commit is contained in:
wm4 2015-03-22 13:28:47 +01:00
parent 7205e75079
commit 612b8a8ab3

View File

@ -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);