diff options
author | morturp <morturp@gmail.com> | 2013-07-18 03:00:39 +0300 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:33 +0100 |
commit | 4f4d474f1241df152663e6330b999ac03e67f675 (patch) | |
tree | 9cd8e521aefb766bac090e2fedc391d970ca25ff /src/renderercommon | |
parent | cd597b1959bf40033e805ad5f08100af555c1520 (diff) |
out seems to be unnecessarily large for one byte per pixel
Diffstat (limited to 'src/renderercommon')
-rw-r--r-- | src/renderercommon/tr_font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderercommon/tr_font.c b/src/renderercommon/tr_font.c index 30616853..07a87df8 100644 --- a/src/renderercommon/tr_font.c +++ b/src/renderercommon/tr_font.c @@ -437,12 +437,12 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { // make a 256x256 image buffer, once it is full, register it, clean it and keep going // until all glyphs are rendered - out = ri.Malloc(1024*1024); + out = ri.Malloc(256*256); if (out == NULL) { ri.Printf(PRINT_WARNING, "RE_RegisterFont: ri.Malloc failure during output image creation.\n"); return; } - Com_Memset(out, 0, 1024*1024); + Com_Memset(out, 0, 256*256); maxHeight = 0; @@ -501,7 +501,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { Q_strncpyz(font->glyphs[j].shaderName, name, sizeof(font->glyphs[j].shaderName)); } lastStart = i; - Com_Memset(out, 0, 1024*1024); + Com_Memset(out, 0, 256*256); xOut = 0; yOut = 0; ri.Free(imageBuff); |