From 142b2f23d429389a0b5acd674b376a06953f9129 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Apr 2017 15:08:20 +0200 Subject: 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. --- video/out/opengl/video.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'video') 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) -- cgit v1.2.3