aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-15 14:32:13 -0400
committerSimon Ser <contact@emersion.fr>2021-04-28 20:55:57 +0200
commitc75aa71816826907805606a108626b4671120a7e (patch)
tree471aa3d45646e571555829a88bd506d0cfc09e2a /backend/x11
parent3a04fb4560cf60c34bd968fe711a45d42993e5a4 (diff)
render/gbm_allocator: make wlr_gbm_allocator_create return a wlr_allocator
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index fbcee33d..06bbfc6c 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -622,13 +622,13 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
goto error_event;
}
- struct wlr_gbm_allocator *gbm_alloc = wlr_gbm_allocator_create(drm_fd);
- if (gbm_alloc == NULL) {
+ struct wlr_allocator *alloc = wlr_gbm_allocator_create(drm_fd);
+ if (alloc == NULL) {
wlr_log(WLR_ERROR, "Failed to create GBM allocator");
close(drm_fd);
goto error_event;
}
- x11->allocator = &gbm_alloc->base;
+ x11->allocator = alloc;
pixmap_formats = &x11->dri3_formats;
} else if (x11->have_shm) {
x11->drm_fd = -1;