aboutsummaryrefslogtreecommitdiff
path: root/examples/touch.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-31 18:49:43 -0400
committeremersion <contact@emersion.fr>2018-03-31 18:49:43 -0400
commit33a2eb4b7775d1a3ab2b767739c1f1f054683d22 (patch)
treecddffb9add6cb5cde4b25305ec1d9e14772ef9c1 /examples/touch.c
parent00e12278c7f94ff7d9505e359c671d50e8622020 (diff)
Untie wlr_backend from wlr_renderer
Diffstat (limited to 'examples/touch.c')
-rw-r--r--examples/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/touch.c b/examples/touch.c
index e9dcf29c..16024fc8 100644
--- a/examples/touch.c
+++ b/examples/touch.c
@@ -108,7 +108,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);