From 243f13e3fff788cb91b524d0c3068f7e0a36e277 Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 18 May 2010 18:50:10 +0000 Subject: [PATCH] properly regenerate dynamic font texture after issuing 'resetgl' git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4921 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendertext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/rendertext.cpp b/source/src/rendertext.cpp index a4937e78..370e9c8d 100644 --- a/source/src/rendertext.cpp +++ b/source/src/rendertext.cpp @@ -635,6 +635,8 @@ void draw_text(const char *str, int left, int top, int r, int g, int b, int a, i void reloadfonts() { + createutf8charset(); + enumerate(fonts, font, f, if(!reloadtexture(*f.tex)) fatal("failed to reload font texture"); );