From f63a5d881d7662ced11057e7d2c38435f40310d6 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 1 Apr 2018 16:57:29 -0400 Subject: examples: get wlr_renderer from the backend --- examples/rotation.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/rotation.c') diff --git a/examples/rotation.c b/examples/rotation.c index 37873797..c7bbc99a 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -137,8 +136,7 @@ int main(int argc, char *argv[]) { compositor.keyboard_key_cb = handle_keyboard_key; compositor_init(&compositor); - struct wlr_egl *egl = wlr_backend_get_egl(compositor.backend); - state.renderer = wlr_gles2_renderer_create(egl); + state.renderer = wlr_backend_get_renderer(compositor.backend); if (!state.renderer) { wlr_log(L_ERROR, "Could not start compositor, OOM"); exit(EXIT_FAILURE); -- cgit v1.2.3