From a43016b8e2ef0faa1c02b13612452d5e9ebca478 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 24 Jul 2017 16:34:40 -0400 Subject: [PATCH] bugfix: fix cursor software rendering fallback wlr_surface_attach_pixels() expects a wl_shm_format but a GL format was given. This caused a bug where software rendering of the cursor would fail when no pixel format can be found. --- types/wlr_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_output.c b/types/wlr_output.c index bec7cd5ff..434a1d9a8 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -206,7 +206,7 @@ bool wlr_output_set_cursor(struct wlr_output *output, output->cursor.texture = wlr_render_surface_init(output->cursor.renderer); } - wlr_surface_attach_pixels(output->cursor.texture, GL_RGBA, + wlr_surface_attach_pixels(output->cursor.texture, WL_SHM_FORMAT_XBGR8888, stride, width, height, buf); return true;