aboutsummaryrefslogtreecommitdiff
path: root/backend/headless/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/headless/backend.c')
-rw-r--r--backend/headless/backend.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index b4166eef..a49a515f 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -70,8 +70,6 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
wlr_backend_finish(wlr_backend);
- free(backend->format);
-
close(backend->drm_fd);
free(backend);
}
@@ -146,20 +144,6 @@ static bool backend_init(struct wlr_headless_backend *backend,
return false;
}
- const struct wlr_drm_format_set *formats =
- wlr_renderer_get_render_formats(renderer);
- if (formats == NULL) {
- wlr_log(WLR_ERROR, "Failed to get available DMA-BUF formats from renderer");
- return false;
- }
- const struct wlr_drm_format *format =
- wlr_drm_format_set_get(formats, DRM_FORMAT_XRGB8888);
- if (format == NULL) {
- wlr_log(WLR_ERROR, "Renderer doesn't support XRGB8888");
- return false;
- }
- backend->format = wlr_drm_format_dup(format);
-
backend->display_destroy.notify = handle_display_destroy;
wl_display_add_destroy_listener(display, &backend->display_destroy);