Simplify visual check
This commit is contained in:
+1
-3
@@ -121,9 +121,7 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm_base,
|
|||||||
EGL_NONE
|
EGL_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
if (visual != &compositor->compositor.argb_visual &&
|
if (visual->object.interface != &wl_visual_interface) {
|
||||||
visual != &compositor->compositor.premultiplied_argb_visual &&
|
|
||||||
visual != &compositor->compositor.rgb_visual) {
|
|
||||||
/* FIXME: Define a real exception event instead of
|
/* FIXME: Define a real exception event instead of
|
||||||
* abusing this one */
|
* abusing this one */
|
||||||
wl_client_post_event(client,
|
wl_client_post_event(client,
|
||||||
|
|||||||
+1
-3
@@ -92,9 +92,7 @@ shm_create_buffer(struct wl_client *client, struct wl_shm *shm,
|
|||||||
struct wlsc_compositor, shm);
|
struct wlsc_compositor, shm);
|
||||||
struct wlsc_shm_buffer *buffer;
|
struct wlsc_shm_buffer *buffer;
|
||||||
|
|
||||||
if (visual != &compositor->compositor.argb_visual &&
|
if (visual->object.interface != &wl_visual_interface) {
|
||||||
visual != &compositor->compositor.premultiplied_argb_visual &&
|
|
||||||
visual != &compositor->compositor.rgb_visual) {
|
|
||||||
/* FIXME: Define a real exception event instead of
|
/* FIXME: Define a real exception event instead of
|
||||||
* abusing this one */
|
* abusing this one */
|
||||||
wl_client_post_event(client,
|
wl_client_post_event(client,
|
||||||
|
|||||||
Reference in New Issue
Block a user