Set up visuals in wayland-server

Still very much hand-wavey, but at least it's only in one place now.
This commit is contained in:
Kristian Høgsberg 2010-12-08 15:12:58 -05:00
parent b3fc757cd8
commit c5c510ec75
6 changed files with 58 additions and 46 deletions

View file

@ -121,9 +121,9 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm_base,
EGL_NONE
};
if (visual != &compositor->argb_visual &&
visual != &compositor->premultiplied_argb_visual &&
visual != &compositor->rgb_visual) {
if (visual != &compositor->compositor.argb_visual &&
visual != &compositor->compositor.premultiplied_argb_visual &&
visual != &compositor->compositor.rgb_visual) {
/* FIXME: Define a real exception event instead of
* abusing this one */
wl_client_post_event(client,