mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed texture increasing in the text renderer
This commit is contained in:
parent
4f0ee26fcf
commit
af9775f400
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue