aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/renderer.c')
-rw-r--r--backend/drm/renderer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index 815ba981..792de938 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -271,7 +271,9 @@ static void close_all_bo_handles(struct wlr_drm_backend *drm,
continue;
}
- close_bo_handle(drm->fd, handles[i]);
+ if (drmCloseBufferHandle(drm->fd, handles[i]) != 0) {
+ wlr_log_errno(WLR_ERROR, "drmCloseBufferHandle failed");
+ }
}
}