aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/renderer.c
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/drm/renderer.c
parent3a04fb4560cf60c34bd968fe711a45d42993e5a4 (diff)
render/gbm_allocator: make wlr_gbm_allocator_create return a wlr_allocator
Diffstat (limited to 'backend/drm/renderer.c')
-rw-r--r--backend/drm/renderer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index e1a0e427..00dfcbb0 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -62,7 +62,7 @@ void finish_drm_renderer(struct wlr_drm_renderer *renderer) {
return;
}
- wlr_allocator_destroy(&renderer->allocator->base);
+ wlr_allocator_destroy(renderer->allocator);
wlr_renderer_destroy(renderer->wlr_rend);
gbm_device_destroy(renderer->gbm);
}
@@ -83,8 +83,8 @@ static bool init_drm_surface(struct wlr_drm_surface *surf,
wlr_swapchain_destroy(surf->swapchain);
surf->swapchain = NULL;
- surf->swapchain = wlr_swapchain_create(&renderer->allocator->base,
- width, height, drm_format);
+ surf->swapchain = wlr_swapchain_create(renderer->allocator, width, height,
+ drm_format);
if (surf->swapchain == NULL) {
wlr_log(WLR_ERROR, "Failed to create swapchain");
memset(surf, 0, sizeof(*surf));