diff options
-rw-r--r-- | generic/Draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/Draw.c b/generic/Draw.c index d7d1283..51daf57 100644 --- a/generic/Draw.c +++ b/generic/Draw.c @@ -1973,6 +1973,9 @@ ZnRenderGlyph(ZnTexFontInfo *tfi, ZnTexGVI *tgvi; tgvi = ZnTexFontGVI(tfi, c); + if (!tgvi) { + return; + } /*printf("%c --> x0,y0: %d %d, tx0,ty0: %g %g, x1,y1: %d %d, tx1,ty1: %g %g, advance: %g\n", c, tgvi->v0x, tgvi->v0y, tgvi->t0x, tgvi->t0y, tgvi->v1x, tgvi->v1y, tgvi->t1x, tgvi->t1y, |