aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-05-10 16:02:07 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-05-11 03:51:01 -0400
commitb45396c790277f3527425bf60c9f27718edf25c8 (patch)
tree07eedbfbccd2469f2cf50b5476c47bc741e66dce /backend/drm
parente353c5c63175c6b3abcbf588aa29285d09817fa4 (diff)
wlr_drm_format: Introduce drm_format_finish
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c2
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;