about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-29 23:49:33 +0200
committeroy <Tom_Adams@web.de>2010-10-29 23:49:33 +0200
commitf1bc96ad090eff0f7a5c6e3d677d0634888994ac (patch)
tree29fcec8a078b3fab7724852c3a3fedee55591e7d
parent476f951ffcb40536d8ce7bc9034df0ce3daec2df (diff)
downloadzcatch-f1bc96ad090eff0f7a5c6e3d677d0634888994ac.tar.gz
zcatch-f1bc96ad090eff0f7a5c6e3d677d0634888994ac.zip
fixed crashes with the font. closes #178
-rw-r--r--src/engine/client/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp
index 79f95b30..ddc9429f 100644
--- a/src/engine/client/text.cpp
+++ b/src/engine/client/text.cpp
@@ -247,9 +247,9 @@ class CTextRender : public IEngineTextRender
 			m_FontTextureFormat, GL_UNSIGNED_BYTE, pData);
 	}
 
-	// 8k of data used for rendering glyphs
-	unsigned char ms_aGlyphData[(4096/64) * (4096/64)];
-	unsigned char ms_aGlyphDataOutlined[(4096/64) * (4096/64)];
+	// 32k of data used for rendering glyphs
+	unsigned char ms_aGlyphData[(1024/8) * (1024/8)];
+	unsigned char ms_aGlyphDataOutlined[(1024/8) * (1024/8)];
 
 	int GetSlot(CFontSizeData *pSizeData)
 	{