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
This commit is contained in:
@@ -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");
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user