From 504286b00689ad2c436bdd230b5a63cd66ba8cd6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Dec 2015 15:08:41 +0100 Subject: vo_opengl: flip image if backend uses flipped rendering Should fix #2635 (untested). --- video/out/vo_opengl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 612cb79663..1715475823 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -329,6 +329,8 @@ static int control(struct vo *vo, uint32_t request, void *data) if (screen) { screen->params.primaries = p->renderer_opts->target_prim; screen->params.gamma = p->renderer_opts->target_trc; + if (p->glctx->flip_v) + mp_image_vflip(screen); } *(struct mp_image **)data = screen; return true; -- cgit v1.2.3