X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdevices%2Fopengl.c;h=366f24934bddcf153ea686b6821e4e28973bd33a;hb=d3fb559b6b8ca9c122b310cae1a3e8b0805f97ad;hp=36ffcc76af79b3948de9622dddc6dcad3eb8d4ef;hpb=32f13e61458ba5f8c29c0a06636a3cc14ee4cb95;p=swftools.git diff --git a/lib/devices/opengl.c b/lib/devices/opengl.c index 36ffcc7..366f249 100644 --- a/lib/devices/opengl.c +++ b/lib/devices/opengl.c @@ -476,6 +476,8 @@ void opengl_addfont(gfxdevice_t*dev, gfxfont_t*font) void opengl_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyphnr, gfxcolor_t*color, gfxmatrix_t*matrix) { internal_t*i = (internal_t*)dev->internal; + if(!font) + return; if(i->font && i->font->id && !strcmp(font->id, i->font->id)) { // current font is correct