diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-23 14:25:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-23 14:25:55 -0400 |
commit | 5a2796266f6f88464396a9cd255dd9d0dedba749 (patch) | |
tree | 27b1036ed11709332c2fb359f02eade319790cf9 /example/rotation.c | |
parent | 2aafb5dd19f8a3e3436f8843071fa2076a6d2716 (diff) |
Support wl_shm pixel formats in gles2 renderer
Diffstat (limited to 'example/rotation.c')
-rw-r--r-- | example/rotation.c | 2 |
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); |