aboutsummaryrefslogtreecommitdiff
path: root/examples/tablet.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tablet.c')
-rw-r--r--examples/tablet.c3
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);