mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-11 13:29:49 -05:00
Simplify visual check
This commit is contained in:
parent
8f66a57b4d
commit
8a457e3e9f
2 changed files with 2 additions and 6 deletions
|
|
@ -92,9 +92,7 @@ shm_create_buffer(struct wl_client *client, struct wl_shm *shm,
|
|||
struct wlsc_compositor, shm);
|
||||
struct wlsc_shm_buffer *buffer;
|
||||
|
||||
if (visual != &compositor->compositor.argb_visual &&
|
||||
visual != &compositor->compositor.premultiplied_argb_visual &&
|
||||
visual != &compositor->compositor.rgb_visual) {
|
||||
if (visual->object.interface != &wl_visual_interface) {
|
||||
/* FIXME: Define a real exception event instead of
|
||||
* abusing this one */
|
||||
wl_client_post_event(client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue