diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-25 08:38:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 08:38:44 -0400 |
commit | 35b31dcfb7f54c08301c4eb352325bb852b1bece (patch) | |
tree | 93d550e437722bdeabca5605ada5c0b4d41128cf /backend/drm/backend.c | |
parent | a0eb37e2ea4ad96b4f6e98fddbc5c31d0bd0f293 (diff) | |
parent | 24cf70ae9691d605e4a1f7e9d8dc59ec72401bd0 (diff) |
Merge pull request #1000 from ammen99/custom-renderer-initialization
[RFC] backends: implement custom EGL and renderer initialization
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r-- | backend/drm/backend.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index c14b99e3..744a32d2 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -114,7 +114,8 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { } struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, - struct wlr_session *session, int gpu_fd, struct wlr_backend *parent) { + struct wlr_session *session, int gpu_fd, struct wlr_backend *parent, + wlr_renderer_create_func_t create_renderer_func) { assert(display && session && gpu_fd >= 0); assert(!parent || wlr_backend_is_drm(parent)); @@ -161,7 +162,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, goto error_event; } - if (!init_drm_renderer(drm, &drm->renderer)) { + if (!init_drm_renderer(drm, &drm->renderer, create_renderer_func)) { wlr_log(L_ERROR, "Failed to initialize renderer"); goto error_event; } |