aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index f55238cb..9eaf5664 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -29,7 +29,6 @@
#include <wlr/interfaces/wlr_pointer.h>
#include <wlr/util/log.h>
-#include "backend/backend.h"
#include "backend/x11.h"
#include "render/drm_format_set.h"
#include "util/signal.h"
@@ -611,12 +610,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 =