mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
Support wl_shm pixel formats in gles2 renderer
This commit is contained in:
parent
2aafb5dd19
commit
5a2796266f
9 changed files with 101 additions and 38 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue