diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-21 16:17:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-21 16:17:27 +0200 |
commit | 4b2f56cc01279801641b695e071c6e5c94d78469 (patch) | |
tree | 68dfe99c198ae21b7db5ed613012bf070817d469 | |
parent | b116414bd5dbc15ec1df3734a4c99c1b5e304982 (diff) | |
parent | 12298ce88c799d4ea58571b1138a374500155ebd (diff) |
Merge pull request #883 from atomnuker/master
Do not advertize *RGB8888 as supported shm formats
-rw-r--r-- | render/wlr_renderer.c | 5 |
1 files changed, 4 insertions, 1 deletions
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]); + } } } |