aboutsummaryrefslogtreecommitdiff
path: root/example/rotation.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/rotation.c')
-rw-r--r--example/rotation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/rotation.c b/example/rotation.c
index 7eed1c2e..b8c43d4c 100644
--- a/example/rotation.c
+++ b/example/rotation.c
@@ -9,9 +9,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>
@@ -202,7 +202,7 @@ int main(int argc, char *argv[]) {
compositor.keyboard_key_cb = handle_keyboard_key;
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);