summaryrefslogtreecommitdiff
path: root/src/cairo-image-surface-inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-13 01:34:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-17 13:58:09 +0100
commit0bfd2acd35547fc2bd0de99cc67d153f0170697d (patch)
treec59ffaad038cb57115c68505b36aa6bc15d88fa7 /src/cairo-image-surface-inline.h
parent140fafed89508c4685f3a464c9dbe8df769f2411 (diff)
downloadcairo-0bfd2acd35547fc2bd0de99cc67d153f0170697d.tar.gz
xlib: Implement SHM fallbacks and fast upload paths
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-image-surface-inline.h')
-rw-r--r--src/cairo-image-surface-inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-image-surface-inline.h b/src/cairo-image-surface-inline.h
index f6bed719a..49591073f 100644
--- a/src/cairo-image-surface-inline.h
+++ b/src/cairo-image-surface-inline.h
@@ -73,7 +73,7 @@ _cairo_image_surface_is_clone (cairo_image_surface_t *image)
static inline cairo_bool_t
_cairo_surface_is_image (const cairo_surface_t *surface)
{
- return surface->backend == &_cairo_image_surface_backend;
+ return surface->backend->type == CAIRO_SURFACE_TYPE_IMAGE;
}
/**