This commit does not take effect until the next video_surface commit anyway.
Unified · Split
| @@ -388,10 +388,6 @@ static void destroy_osd_buffers(struct vo *vo) · 387 unmodified lines | ||
| 388 | 388 | if (!vo->wl) |
| 389 | 389 | return; |
| 390 | 390 | |
| 391 | − // Remove any existing buffer before we destroy them. | |
| 392 | − wl_surface_attach(vo->wl->osd_surface, NULL, 0, 0); | |
| 393 | − wl_surface_commit(vo->wl->osd_surface); | |
| 394 | − | |
| 395 | 391 | struct priv *p = vo->priv; |
| 396 | 392 | struct osd_buffer *osd_buf, *tmp; |
| 397 | 393 | wl_list_for_each_safe(osd_buf, tmp, &p->osd_buffer_list, link) { |