diff options
author | wm4 <wm4@nowhere> | 2015-12-25 15:08:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-25 15:08:41 +0100 |
commit | 504286b00689ad2c436bdd230b5a63cd66ba8cd6 (patch) | |
tree | f5d0b7c6ae26bf886d4592f5db7460531c2588a1 | |
parent | fb8285c7a769ed3cc9ffadb18b39759891c856d9 (diff) | |
download | mpv-504286b00689ad2c436bdd230b5a63cd66ba8cd6.tar.bz2 mpv-504286b00689ad2c436bdd230b5a63cd66ba8cd6.tar.xz |
vo_opengl: flip image if backend uses flipped rendering
Should fix #2635 (untested).
-rw-r--r-- | video/out/vo_opengl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |