mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 00:40:43 +02:00
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@znc.in>
This commit is contained in:
parent
213b3b9b8b
commit
826cda5974
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
@ -2789,7 +2790,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? */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue