mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 06:16:38 +08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user