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:
parent
7205e75079
commit
612b8a8ab3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user