mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-13 13:29:47 -05:00
Workaround gears depending on cairo-gl
Extremely hacky, but at least it doesn't stop the build anymore.
This commit is contained in:
parent
f8475c9366
commit
9835417962
2 changed files with 7 additions and 2 deletions
|
|
@ -222,10 +222,13 @@ allocate_buffer(struct gears *gears)
|
||||||
window_draw(gears->window);
|
window_draw(gears->window);
|
||||||
|
|
||||||
gears->surface[gears->current] = window_get_surface(gears->window);
|
gears->surface[gears->current] = window_get_surface(gears->window);
|
||||||
|
#ifdef HAVE_CAIRO_GL
|
||||||
image = display_get_image_for_drm_surface(gears->display,
|
image = display_get_image_for_drm_surface(gears->display,
|
||||||
gears->surface[gears->current]);
|
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");
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
if (!eglMakeCurrent(gears->display, NULL, NULL, gears->context))
|
if (!eglMakeCurrent(gears->display, NULL, NULL, gears->context))
|
||||||
die("faile to make context current\n");
|
die("faile to make context current\n");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,12 @@ display_get_compositor(struct display *display);
|
||||||
EGLDisplay
|
EGLDisplay
|
||||||
display_get_egl_display(struct display *d);
|
display_get_egl_display(struct display *d);
|
||||||
|
|
||||||
|
#ifdef HAVE_CAIRO_GL
|
||||||
EGLImageKHR
|
EGLImageKHR
|
||||||
display_get_image_for_drm_surface(struct display *display,
|
display_get_image_for_drm_surface(struct display *display,
|
||||||
cairo_surface_t *surface);
|
cairo_surface_t *surface);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
cairo_surface_t *
|
cairo_surface_t *
|
||||||
display_create_surface(struct display *display,
|
display_create_surface(struct display *display,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue