diff options
author | lecoanet | 2003-04-24 14:04:39 +0000 |
---|---|---|
committer | lecoanet | 2003-04-24 14:04:39 +0000 |
commit | 975a0e312156858e142a3e5c3b47c167575c74dc (patch) | |
tree | bfdb8de6778368d17dc009aaa3a9c96ec99275cc /generic/Map.c | |
parent | c1160f35c68aea19100799b6fcd2ce26b6b54637 (diff) | |
download | tkzinc-975a0e312156858e142a3e5c3b47c167575c74dc.zip tkzinc-975a0e312156858e142a3e5c3b47c167575c74dc.tar.gz tkzinc-975a0e312156858e142a3e5c3b47c167575c74dc.tar.bz2 tkzinc-975a0e312156858e142a3e5c3b47c167575c74dc.tar.xz |
Test for render before trying to allocate default font texture.
Diffstat (limited to 'generic/Map.c')
-rw-r--r-- | generic/Map.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/Map.c b/generic/Map.c index be00b17..74a67ba 100644 --- a/generic/Map.c +++ b/generic/Map.c @@ -215,7 +215,10 @@ Init(ZnItem item, map->text_font = Tk_GetFont(wi->interp, wi->win, Tk_NameOfFont(wi->map_text_font)); #ifdef GL - map->tfi = ZnGetTexFont(wi, map->text_font); + map->tfi = NULL; + if (wi->render) { + map->tfi = ZnGetTexFont(wi, map->text_font); + } #endif map->map_info_name = NULL; |