From aebe5ba48ccf7b22cb1d6dc27fd4e1f92e3fead6 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 31 Jul 2017 14:54:00 -0400 Subject: [PATCH] Use correct pixel format enum in touch example Fix a call to `wlr_surface_attach_pixels()` in the main method of the touch example to use the correct enum for this method (wayland instead of gl). --- examples/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/touch.c b/examples/touch.c index aca86739..97009e81 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -106,7 +106,7 @@ int main(int argc, char *argv[]) { state.renderer = wlr_gles2_renderer_init(); state.cat_texture = wlr_render_surface_init(state.renderer); - wlr_surface_attach_pixels(state.cat_texture, GL_RGBA, + wlr_surface_attach_pixels(state.cat_texture, WL_SHM_FORMAT_ARGB8888, cat_tex.width, cat_tex.width, cat_tex.height, cat_tex.pixel_data); compositor_run(&compositor);