diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-02 10:12:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 10:12:19 -0400 |
commit | 7a1e02be78bc9247681713ffda09bea7e0aa551f (patch) | |
tree | 94a6af8d82d1df5ce6e7c336c1f787ce6d73fbf0 /examples/touch.c | |
parent | ee1a2f2f8a4cedfc7c1f923261388dab2af95153 (diff) | |
parent | f63a5d881d7662ced11057e7d2c38435f40310d6 (diff) |
Merge pull request #802 from emersion/examples-remove-egl
examples: get wlr_renderer from the backend
Diffstat (limited to 'examples/touch.c')
-rw-r--r-- | examples/touch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/touch.c b/examples/touch.c index 16024fc8..949d209d 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -12,7 +12,6 @@ #include <wayland-server.h> #include <wlr/backend.h> #include <wlr/backend/session.h> -#include <wlr/render/gles2.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_list.h> #include <wlr/types/wlr_matrix.h> @@ -108,8 +107,7 @@ int main(int argc, char *argv[]) { }; 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); |