aboutsummaryrefslogtreecommitdiff
path: root/example/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/touch.c')
-rw-r--r--example/touch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/touch.c b/example/touch.c
index 4b4782f1..29380ed4 100644
--- a/example/touch.c
+++ b/example/touch.c
@@ -10,9 +10,9 @@
#include <wayland-server.h>
#include <wayland-server-protocol.h>
#include <xkbcommon/xkbcommon.h>
-#include <GLES3/gl3.h>
+#include <GLES2/gl2.h>
#include <wlr/render/matrix.h>
-#include <wlr/render/gles3.h>
+#include <wlr/render/gles2.h>
#include <wlr/render.h>
#include <wlr/backend.h>
#include <wlr/session.h>
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
};
compositor_init(&compositor);
- state.renderer = wlr_gles3_renderer_init();
+ state.renderer = wlr_gles2_renderer_init();
state.cat_texture = wlr_render_surface_init(state.renderer);
wlr_surface_attach_pixels(state.cat_texture, GL_RGBA,
cat_tex.width, cat_tex.height, cat_tex.pixel_data);