diff options
Diffstat (limited to 'src/cairo-gl-glyphs.c')
-rw-r--r-- | src/cairo-gl-glyphs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-gl-glyphs.c b/src/cairo-gl-glyphs.c index 34b5d72f..8a1a548d 100644 --- a/src/cairo-gl-glyphs.c +++ b/src/cairo-gl-glyphs.c @@ -231,7 +231,7 @@ render_glyphs (cairo_gl_surface_t *dst, cairo_format_t last_format = CAIRO_FORMAT_INVALID; cairo_gl_glyph_cache_t *cache = NULL; cairo_gl_context_t *ctx; - cairo_gl_emit_glyph_t emit; + cairo_gl_emit_glyph_t emit = NULL; cairo_gl_composite_t setup; cairo_int_status_t status; int i = 0; @@ -332,6 +332,7 @@ render_glyphs (cairo_gl_surface_t *dst, y2 = y1 + scaled_glyph->surface->height; glyph = _cairo_gl_glyph_cache_lock (cache, scaled_glyph); + assert (emit); emit (ctx, x1, y1, x2, y2, glyph->p1.x, glyph->p1.y, |