Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
backend/x11: stop initializing renderer and allocator during creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckb0ne committed Sep 13, 2021
1 parent 023610f commit 56ef360
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/x11/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,6 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
}
}

struct wlr_renderer *renderer = wlr_backend_get_renderer(&x11->backend);
struct wlr_allocator *allocator = backend_get_allocator(&x11->backend);
if (renderer == NULL || allocator == NULL) {
goto error_event;
}

// Windows can only display buffers with the depth they were created with
// TODO: look into changing the window's depth at runtime
const struct wlr_drm_format *dri3_format =
Expand Down

0 comments on commit 56ef360

Please sign in to comment.