aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-29 23:24:09 +0100
committeremersion <contact@emersion.fr>2018-01-29 23:24:09 +0100
commit51c22d39a4a1a3c4ecfe39ee3df90ba7e66633af (patch)
treeb9fd9fd6fddc8a869f3500bf92944b47c01c578c /backend/drm/backend.c
parent2cc989e09716eed5974dc9a76b7b6dbee9c3d730 (diff)
parented5b1fdedd775a7acec3d6814cc2ac007e34fd29 (diff)
Merge remote-tracking branch 'upstream/master' into output-damage
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index c0e49f18..de69dad5 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -50,10 +50,17 @@ static struct wlr_egl *wlr_drm_backend_get_egl(struct wlr_backend *backend) {
return &drm->renderer.egl;
}
+static struct wlr_renderer *wlr_drm_backend_get_renderer(
+ struct wlr_backend *backend) {
+ struct wlr_drm_backend *drm = (struct wlr_drm_backend *)backend;
+ return drm->renderer.wlr_rend;
+}
+
static struct wlr_backend_impl backend_impl = {
.start = wlr_drm_backend_start,
.destroy = wlr_drm_backend_destroy,
- .get_egl = wlr_drm_backend_get_egl
+ .get_egl = wlr_drm_backend_get_egl,
+ .get_renderer = wlr_drm_backend_get_renderer,
};
bool wlr_backend_is_drm(struct wlr_backend *b) {