[cairo-commit] src/cairo-xcb-surface-render.c
Uli Schlachter
psychon at kemper.freedesktop.org
Sat Aug 23 05:40:29 PDT 2014
src/cairo-xcb-surface-render.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 545444ec1f79eab268647e9859efc9c8d1a10391
Author: Uli Schlachter <psychon at znc.in>
Date: Sat Aug 23 14:38:36 2014 +0200
xcb: Correctly check for image surface for inplace upload
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82987
Signed-off-by: Uli Schlachter <psychon at znc.in>
diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c
index a127000..163bc41 100644
--- a/src/cairo-xcb-surface-render.c
+++ b/src/cairo-xcb-surface-render.c
@@ -37,6 +37,7 @@
#include "cairo-clip-inline.h"
#include "cairo-clip-private.h"
#include "cairo-composite-rectangles-private.h"
+#include "cairo-image-surface-inline.h"
#include "cairo-image-surface-private.h"
#include "cairo-list-inline.h"
#include "cairo-region-private.h"
@@ -2786,7 +2787,7 @@ _upload_image_inplace (cairo_xcb_surface_t *surface,
return CAIRO_INT_STATUS_UNSUPPORTED;
pattern = (const cairo_surface_pattern_t *) source;
- if (pattern->surface->type != CAIRO_SURFACE_TYPE_IMAGE)
+ if (! _cairo_surface_is_image (pattern->surface))
return CAIRO_INT_STATUS_UNSUPPORTED;
/* Have we already upload this image to a pixmap? */
More information about the cairo-commit
mailing list