Merge pull request #883 from atomnuker/master

Do not advertize *RGB8888 as supported shm formats
This commit is contained in:
Drew DeVault 2018-04-21 16:17:27 +02:00 committed by GitHub
commit 4b2f56cc01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -168,6 +168,9 @@ void wlr_renderer_init_wl_shm(struct wlr_renderer *r,
} }
for (size_t i = 0; i < len; ++i) { 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]);
}
} }
} }