mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00: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:
parent
3f0dcbf518
commit
142b2f23d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user