summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-02-22 15:24:08 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-02-22 15:24:08 +0000
commit6dd22b767808f721de5d00fe384711ffaa269453 (patch)
treeaad43bcc403b8c71f6b26a132a206b1c705ba8fc
parent668ac047e6c790b0f8f58c52f169c688caa81678 (diff)
gl: Initialise glyphs mask to ensure allocation in absence of stash.
-rw-r--r--src/cairo-gl-glyphs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-gl-glyphs.c b/src/cairo-gl-glyphs.c
index 8ea04ef6..b9b1117d 100644
--- a/src/cairo-gl-glyphs.c
+++ b/src/cairo-gl-glyphs.c
@@ -656,6 +656,7 @@ _cairo_gl_surface_show_glyphs_via_mask (cairo_gl_surface_t *dst,
return status;
/* XXX: For non-CA, this should be CAIRO_CONTENT_ALPHA to save memory */
+ mask = NULL;
if (ctx->glyphs_temporary_mask) {
if (glyph_extents->width <= ctx->glyphs_temporary_mask->width &&
glyph_extents->height <= ctx->glyphs_temporary_mask->height)