mirror of
https://github.com/mpv-player/mpv
synced 2024-11-11 00:15:33 +01:00
vo_opengl: fix incorrectly drawn OSD in idle mode
Trade one bug for another, I don't even care anymore. Fixes #1691.
This commit is contained in:
parent
aa728d5d6f
commit
e744eef322
@ -1334,8 +1334,6 @@ static void pass_convert_yuv(struct gl_video *p)
|
||||
mp_csp_set_image_params(&cparams, &p->image_params);
|
||||
mp_csp_copy_equalizer_values(&cparams, &p->video_eq);
|
||||
|
||||
p->user_gamma = 1.0 / (cparams.gamma * p->opts.gamma);
|
||||
|
||||
GLSLF("// color conversion\n");
|
||||
|
||||
if (p->color_swizzle[0])
|
||||
@ -1848,6 +1846,8 @@ 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;
|
||||
|
||||
gl->BindFramebuffer(GL_FRAMEBUFFER, fbo);
|
||||
|
||||
if (p->dst_rect.x0 > 0 || p->dst_rect.y0 > 0
|
||||
|
Loading…
Reference in New Issue
Block a user