From 675bc396583f2e1e30ce2a5a91769cc58be9948a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 23 Feb 2021 17:36:32 +0100 Subject: Fix wl_shm_format passed to wlr_texture_from_pixels Fixes: 27fba3df4347 ("render: use DRM formats in wlr_texture_from_pixels") --- examples/output-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/output-layout.c') diff --git a/examples/output-layout.c b/examples/output-layout.c index 0c86abcc..cacee014 100644 --- a/examples/output-layout.c +++ b/examples/output-layout.c @@ -1,4 +1,5 @@ #define _POSIX_C_SOURCE 200112L +#include #include #include #include @@ -279,7 +280,7 @@ int main(int argc, char *argv[]) { state.renderer = wlr_backend_get_renderer(wlr); state.cat_texture = wlr_texture_from_pixels(state.renderer, - WL_SHM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, + DRM_FORMAT_ABGR8888, cat_tex.width * 4, cat_tex.width, cat_tex.height, cat_tex.pixel_data); if (!wlr_backend_start(wlr)) { -- cgit v1.2.3