Port window.c to use wayland-egl

This commit is contained in:
Kristian Høgsberg 2011-02-04 14:11:33 -05:00
parent 66cea0ad25
commit 297c6313eb
5 changed files with 62 additions and 98 deletions

View file

@ -213,8 +213,8 @@ allocate_buffer(struct gears *gears)
gears->surface[gears->current] = window_get_surface(gears->window);
#ifdef HAVE_CAIRO_EGL
image = display_get_image_for_drm_surface(gears->display,
gears->surface[gears->current]);
image = display_get_image_for_egl_image_surface(gears->display,
gears->surface[gears->current]);
#else /* XXX: hack to make Wayland compile, even if this example doesn't run */
die("gears cannot allocate buffer: it was compiled without cairo-gl\n");
return;