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