diff options
author | wm4 <wm4@nowhere> | 2017-04-29 15:08:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-29 15:09:40 +0200 |
commit | 142b2f23d429389a0b5acd674b376a06953f9129 (patch) | |
tree | 7612e426da163f1296e0395df204ab55c377abb3 /video | |
parent | 3f0dcbf51826ce30878b3f9335fe8499325816a9 (diff) | |
download | mpv-142b2f23d429389a0b5acd674b376a06953f9129.tar.bz2 mpv-142b2f23d429389a0b5acd674b376a06953f9129.tar.xz |
vo_opengl: make sure overlays are removed on gl_video_config()
This should make vo_opengl_cb uninit remove the frame, even if the
renderer and OpenGL state remains active.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 3189ec1ff3..2cce989bdd 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -840,8 +840,11 @@ static void unmap_current_image(struct gl_video *p) p->hwdec->driver->unmap(p->hwdec); memset(vimg->planes, 0, sizeof(vimg->planes)); vimg->hwdec_mapped = false; - vimg->id = 0; // needs to be mapped again + vimg->id = 0; // needs to be mapped again } + + if (p->hwdec_active && p->hwdec->driver->overlay_frame) + p->hwdec->driver->overlay_frame(p->hwdec, NULL); } static void unref_current_image(struct gl_video *p) |