diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-23 22:53:50 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-24 10:16:22 +0000 |
commit | 4cf001244a589b5bf1b3745327948f87c397c22f (patch) | |
tree | d5e4680ef643a344638c9de2d25928729c34c73c /src/cairo-gl-spans-compositor.c | |
parent | 5edb3a29b9210fda9e2dc95f7a999675402b471c (diff) |
gl: Avoid cleaning up an uninitialised composite upon UNSUPPORTED
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-gl-spans-compositor.c')
-rw-r--r-- | src/cairo-gl-spans-compositor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-gl-spans-compositor.c b/src/cairo-gl-spans-compositor.c index 4c01171a..710cbe24 100644 --- a/src/cairo-gl-spans-compositor.c +++ b/src/cairo-gl-spans-compositor.c @@ -477,6 +477,9 @@ _cairo_gl_span_renderer_fini (cairo_abstract_span_renderer_t *_r, { cairo_gl_span_renderer_t *r = (cairo_gl_span_renderer_t *) _r; + if (status == CAIRO_INT_STATUS_UNSUPPORTED) + return; + if (status == CAIRO_INT_STATUS_SUCCESS) r->base.finish (r); |