fixed texture increasing in the text renderer

This commit is contained in:
oy 2011-12-29 13:03:06 +01:00
parent 4f0ee26fcf
commit af9775f400

View file

@ -285,7 +285,8 @@ class CTextRender : public IEngineTextRender
Oldest = i;
}
if(time_get()-pSizeData->m_aCharacters[Oldest].m_TouchTime < time_freq())
if(time_get()-pSizeData->m_aCharacters[Oldest].m_TouchTime < time_freq() &&
(pSizeData->m_NumXChars < MAX_CHARACTERS || pSizeData->m_NumYChars < MAX_CHARACTERS))
{
IncreaseTextureSize(pSizeData);
return GetSlot(pSizeData);