diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-23 11:38:45 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-23 11:38:45 -0400 |
commit | b18209c904f421f3065d610718d7d9e9b8b9211f (patch) | |
tree | f1b5bcf3c1c7ee50e4a2a3f03c68c1136ef4ed44 /example | |
parent | 168f0955ab5d6b614eb841bcb0ea684dd9105ef8 (diff) |
Switch to GLES2
Closes #13
Diffstat (limited to 'example')
-rw-r--r-- | example/pointer.c | 6 | ||||
-rw-r--r-- | example/rotation.c | 6 | ||||
-rw-r--r-- | example/simple.c | 2 | ||||
-rw-r--r-- | example/tablet.c | 6 | ||||
-rw-r--r-- | example/touch.c | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/example/pointer.c b/example/pointer.c index 035af240..8dba5454 100644 --- a/example/pointer.c +++ b/example/pointer.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> @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) { compositor.pointer_axis_cb = handle_pointer_axis; 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); 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); diff --git a/example/simple.c b/example/simple.c index 8a01fab8..4bbdf399 100644 --- a/example/simple.c +++ b/example/simple.c @@ -5,7 +5,7 @@ #include <time.h> #include <inttypes.h> #include <wayland-server.h> -#include <GLES3/gl3.h> +#include <GLES2/gl2.h> #include <wlr/backend.h> #include <wlr/session.h> #include <wlr/types/wlr_output.h> diff --git a/example/tablet.c b/example/tablet.c index 69c530a6..0343bd0a 100644 --- a/example/tablet.c +++ b/example/tablet.c @@ -8,9 +8,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> @@ -150,7 +150,7 @@ int main(int argc, char *argv[]) { }; compositor_init(&compositor); - state.renderer = wlr_gles3_renderer_init(); + state.renderer = wlr_gles2_renderer_init(); compositor_run(&compositor); 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); |