Resolved amd64 valgrind warnings and potential slowness
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4049 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
46d38af14e
commit
757b50efa1
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ static int Font_BeginChar(texid_t tex)
|
|||
{
|
||||
int fvert;
|
||||
|
||||
if (font_foremesh.numindexes == FONT_CHAR_BUFFER*6 || memcmp(&font_texture,&tex, sizeof(texid_t)))
|
||||
if (font_foremesh.numindexes == FONT_CHAR_BUFFER*6 || font_texture.ref != tex.ref)
|
||||
{
|
||||
Font_Flush();
|
||||
TEXASSIGNF(font_texture, tex);
|
||||
|
|
Loading…
Reference in a new issue