mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: track gbm_bo during direct scan-out
We need to destroy the gbm_bo we imported and drmModeRmFb. Closes: https://github.com/swaywm/sway/issues/4662
This commit is contained in:
parent
61a6f2b928
commit
fd25e2ca11
2 changed files with 13 additions and 0 deletions
|
|
@ -131,8 +131,10 @@ struct wlr_drm_connector {
|
|||
struct wlr_dmabuf_attributes pending_dmabuf;
|
||||
// Buffer submitted to the kernel but not yet displayed
|
||||
struct wlr_buffer *pending_buffer;
|
||||
struct gbm_bo *pending_bo;
|
||||
// Buffer currently being displayed
|
||||
struct wlr_buffer *current_buffer;
|
||||
struct gbm_bo *current_bo;
|
||||
};
|
||||
|
||||
struct wlr_drm_backend *get_drm_backend_from_backend(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue