mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Do not advertize *RGB8888 as supported shm formats
They're always available and supported, and are added automatically. Adding them again just duplicates them.
This commit is contained in:
parent
b116414bd5
commit
12298ce88c
1 changed files with 4 additions and 1 deletions
|
@ -168,6 +168,9 @@ void wlr_renderer_init_wl_shm(struct wlr_renderer *r,
|
|||
}
|
||||
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
if (formats[i] != WL_SHM_FORMAT_ARGB8888 &&
|
||||
formats[i] != WL_SHM_FORMAT_XRGB8888) {
|
||||
wl_display_add_shm_format(display, formats[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue