diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-31 21:31:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 21:31:15 -0400 |
commit | b60e31e5c034c87a5b3b01862d2ea535ef7de31c (patch) | |
tree | 335d648f02305c4c37359d2e7fcfcffbddb78534 /examples/tablet.c | |
parent | 1b258ffceb489a8ef339773ef23b1ac65f8774bd (diff) | |
parent | 33a2eb4b7775d1a3ab2b767739c1f1f054683d22 (diff) |
Merge pull request #794 from emersion/renderer-untie-backend
Untie wlr_backend from wlr_renderer
Diffstat (limited to 'examples/tablet.c')
-rw-r--r-- | examples/tablet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tablet.c b/examples/tablet.c index be428f86..d80b4b2f 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -192,7 +192,8 @@ int main(int argc, char *argv[]) { }; compositor_init(&compositor); - state.renderer = wlr_gles2_renderer_create(compositor.backend); + struct wlr_egl *egl = wlr_backend_get_egl(compositor.backend); + state.renderer = wlr_gles2_renderer_create(egl); if (!state.renderer) { wlr_log(L_ERROR, "Could not start compositor, OOM"); exit(EXIT_FAILURE); |