diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-29 17:13:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 17:13:23 -0500 |
commit | ed5b1fdedd775a7acec3d6814cc2ac007e34fd29 (patch) | |
tree | 79192b14d83eae55d63c38223ba60beb020bb6f6 /backend/drm | |
parent | 60b2d969e07e24ed1b96ccc9d82bc2f9c1d540f2 (diff) | |
parent | f34a1b75ebd9dbebf4fb9c2cf34d878fce902c03 (diff) |
Merge pull request #580 from emersion/screenshooter-renderer-backport
Backport screenshooter fixes from the renderer redesign v1
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 9 |
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) { |