mirror of https://github.com/mpv-player/mpv
parent
7409f4a6c9
commit
33130741f4
|
@ -333,6 +333,9 @@ static void destroy_buffers(struct vo *vo)
|
|||
|
||||
static void destroy_osd_buffers(struct vo *vo)
|
||||
{
|
||||
if (!vo->wl)
|
||||
return;
|
||||
|
||||
// Remove any existing buffer before we destroy them.
|
||||
wl_surface_attach(vo->wl->osd_surface, NULL, 0, 0);
|
||||
wl_surface_commit(vo->wl->osd_surface);
|
||||
|
|
Loading…
Reference in New Issue