From 12298ce88c799d4ea58571b1138a374500155ebd Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Sat, 21 Apr 2018 14:31:52 +0100 Subject: Do not advertize *RGB8888 as supported shm formats They're always available and supported, and are added automatically. Adding them again just duplicates them. --- render/wlr_renderer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index a41ae388..700da05b 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -168,6 +168,9 @@ void wlr_renderer_init_wl_shm(struct wlr_renderer *r, } for (size_t i = 0; i < len; ++i) { - wl_display_add_shm_format(display, formats[i]); + if (formats[i] != WL_SHM_FORMAT_ARGB8888 && + formats[i] != WL_SHM_FORMAT_XRGB8888) { + wl_display_add_shm_format(display, formats[i]); + } } } -- cgit v1.2.3