[test/xlib-surface-source] Build under --disable-xlib-xrender.

Add an ifdef to support compiling without XRender.
This commit is contained in:
Chris Wilson 2008-06-19 11:38:38 +01:00
parent 38c4bcc2da
commit 47d8739ea1

View file

@ -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
}