diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-08-24 12:24:20 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-08-24 12:27:15 +0100 |
commit | a29544a0b6f150384fd652aad950d1cae9809c42 (patch) | |
tree | a1933c06d22853b06c7d014c65bb72cef9bd054c /boilerplate/cairo-boilerplate-xlib.c | |
parent | 177a3b8a32f13ce92d45899367fb7758600f7b93 (diff) |
[cairo-boilerplate-xlib] Clear Render data for the non-Render fallback.
As well as marking the XRender extension unavailable in
_cairo_boiler_player_xlib_disable_render(), we need to clear any
XRender derived information stored during the surface creation.
Diffstat (limited to 'boilerplate/cairo-boilerplate-xlib.c')
-rw-r--r-- | boilerplate/cairo-boilerplate-xlib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c index f95869f8c..c0553ef06 100644 --- a/boilerplate/cairo-boilerplate-xlib.c +++ b/boilerplate/cairo-boilerplate-xlib.c @@ -286,6 +286,11 @@ cairo_boilerplate_xlib_surface_disable_render (cairo_surface_t *abstract_surface return CAIRO_STATUS_SURFACE_TYPE_MISMATCH; surface->render_major = surface->render_minor = -1; + surface->xrender_format = NULL; + + /* The content type is forced by _xrender_format_to_content() during + * non-Render surface creation, so repeat the procedure here. */ + surface->base.content = CAIRO_CONTENT_COLOR; return CAIRO_STATUS_SUCCESS; } |