aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-07-31 15:55:57 -0400
committerGitHub <noreply@github.com>2017-07-31 15:55:57 -0400
commit2bfacc63d3609cdc03bd0ecc8191c25711cf0ca0 (patch)
treec469bfae243128b58a2f49683740f946181e201e
parentf08998627fc000dec0a7f3d33e05ac103a2e6f1b (diff)
parentaebe5ba48ccf7b22cb1d6dc27fd4e1f92e3fead6 (diff)
Merge pull request #39 from acrisci/bug/fix-wl-enum-touch
Use correct pixel format enum in touch example
-rw-r--r--examples/touch.c2
1 files changed, 1 insertions, 1 deletions
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);