aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/Text.c b/generic/Text.c
index 9fd5c3a..02935f6 100644
--- a/generic/Text.c
+++ b/generic/Text.c
@@ -778,6 +778,9 @@ Render(Item item)
if (!text->txf) {
text->txf = GetTexFont(wi->win, text->font);
}
+ if (!text->txf) {
+ return;
+ }
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
glEnable(GL_TEXTURE_2D);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);