aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/rotation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/rotation.c b/example/rotation.c
index b8c43d4c..84137078 100644
--- a/example/rotation.c
+++ b/example/rotation.c
@@ -204,7 +204,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_ABGR8888,
cat_tex.width, cat_tex.height, cat_tex.pixel_data);
compositor_run(&compositor);