mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 03:40:13 +01:00
[test/xlib-surface-source] Build under --disable-xlib-xrender.
Add an ifdef to support compiling without XRender.
This commit is contained in:
parent
38c4bcc2da
commit
47d8739ea1
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ cleanup (void *data)
|
|||
static cairo_surface_t *
|
||||
create_source_surface (int size)
|
||||
{
|
||||
#if CAIRO_HAS_XLIB_XRENDER_SURFACE
|
||||
XRenderPictFormat *xrender_format;
|
||||
struct closure *data;
|
||||
cairo_surface_t *surface;
|
||||
|
|
@ -73,4 +74,7 @@ create_source_surface (int size)
|
|||
cairo_surface_set_user_data (surface, &closure_key, data, cleanup);
|
||||
|
||||
return surface;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue