From af9775f4003c0a3bcb3efd12faccff95e60ef333 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 29 Dec 2011 13:03:06 +0100 Subject: fixed texture increasing in the text renderer --- src/engine/client/text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/engine') diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index 4a3a2eb3..88e97d4a 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -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); -- cgit 1.4.1