diff options
-rw-r--r-- | video/out/gl_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index c100daafbb..104f494c66 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -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 |