summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-18 13:01:30 +0200
committerBenjamin Otte <otte@redhat.com>2010-05-20 11:01:21 +0200
commit915aa64ef077fe3b6094d0f1c8bd87ab5acc4868 (patch)
treeaa65a101501790c2e27b68df76794df0eb5ae429
parent0222cc7d76b0dc724630b660687f98a2460eb0b9 (diff)
gl: Actually check errors for _cairo_gl_composite_begin()
-rw-r--r--src/cairo-gl-glyphs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-gl-glyphs.c b/src/cairo-gl-glyphs.c
index a72f93ca..7ccc7fd1 100644
--- a/src/cairo-gl-glyphs.c
+++ b/src/cairo-gl-glyphs.c
@@ -343,6 +343,8 @@ _render_glyphs (cairo_gl_surface_t *dst,
*has_component_alpha |= cache->pattern.base.has_component_alpha;
status = _cairo_gl_composite_begin (ctx, &setup);
+ if (unlikely (status))
+ goto FINISH;
}
if (scaled_glyph->surface_private == NULL) {