mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-15 06:59:49 -05:00
Port window.c to use wayland-egl
This commit is contained in:
parent
66cea0ad25
commit
297c6313eb
5 changed files with 62 additions and 98 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue