aboutsummaryrefslogtreecommitdiffstats
path: root/compositor
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-01-15 12:34:48 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-01-16 21:09:04 -0500
commitecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df (patch)
tree180ed5cc5d69cb476116228df241e1f5a2a5039d /compositor
parentsimple-client: Remove unnecessary flush (diff)
downloadwayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar.gz
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar.bz2
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar.lz
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar.xz
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.tar.zst
wayland-ecfb2b93f3f0a9bd79b4155acf5e8c6efc5516df.zip
compositor-wayland: Assign func pointers pre init
Diffstat (limited to 'compositor')
-rw-r--r--compositor/compositor-wayland.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/compositor/compositor-wayland.c b/compositor/compositor-wayland.c
index ed8a2ba..8a40137 100644
--- a/compositor/compositor-wayland.c
+++ b/compositor/compositor-wayland.c
@@ -530,6 +530,11 @@ wayland_compositor_create(struct wl_display *display, int width, int height)
if (wayland_compositor_init_egl(c) < 0)
return NULL;
+ c->base.destroy = wayland_destroy;
+ c->base.authenticate = wayland_authenticate;
+ c->base.present = wayland_compositor_present;
+ c->base.create_buffer = wlsc_drm_buffer_create;
+
/* Can't init base class until we have a current egl context */
if (wlsc_compositor_init(&c->base, display) < 0)
return NULL;
@@ -549,9 +554,5 @@ wayland_compositor_create(struct wl_display *display, int width, int height)
if (c->parent.wl_source == NULL)
return NULL;
- c->base.destroy = wayland_destroy;
- c->base.authenticate = wayland_authenticate;
- c->base.present = wayland_compositor_present;
-
return &c->base;
}