diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-10 16:02:07 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-05-11 03:51:01 -0400 |
commit | b45396c790277f3527425bf60c9f27718edf25c8 (patch) | |
tree | 07eedbfbccd2469f2cf50b5476c47bc741e66dce /backend | |
parent | e353c5c63175c6b3abcbf588aa29285d09817fa4 (diff) |
wlr_drm_format: Introduce drm_format_finish
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 7b6b5451..0ac41afb 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -513,6 +513,7 @@ static bool drm_connector_state_update_primary_fb(struct wlr_drm_connector *conn // TODO: fallback to modifier-less buffer allocation bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer, source_buf->width, source_buf->height, format); + wlr_drm_format_finish(format); free(format); if (!ok) { return false; @@ -953,6 +954,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output, bool ok = init_drm_surface(&plane->mgpu_surf, &drm->mgpu_renderer, buffer->width, buffer->height, format); + wlr_drm_format_finish(format); free(format); if (!ok) { return false; |