mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-29 23:32:23 +00:00
out seems to be unnecessarily large for one byte per pixel
This commit is contained in:
parent
9c2ce77d98
commit
7b47c6cf36
1 changed files with 3 additions and 3 deletions
|
@ -436,12 +436,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
|
// make a 256x256 image buffer, once it is full, register it, clean it and keep going
|
||||||
// until all glyphs are rendered
|
// until all glyphs are rendered
|
||||||
|
|
||||||
out = ri.Malloc(1024*1024);
|
out = ri.Malloc(256*256);
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
ri.Printf(PRINT_WARNING, "RE_RegisterFont: ri.Malloc failure during output image creation.\n");
|
ri.Printf(PRINT_WARNING, "RE_RegisterFont: ri.Malloc failure during output image creation.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Com_Memset(out, 0, 1024*1024);
|
Com_Memset(out, 0, 256*256);
|
||||||
|
|
||||||
maxHeight = 0;
|
maxHeight = 0;
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
|
||||||
Q_strncpyz(font->glyphs[j].shaderName, name, sizeof(font->glyphs[j].shaderName));
|
Q_strncpyz(font->glyphs[j].shaderName, name, sizeof(font->glyphs[j].shaderName));
|
||||||
}
|
}
|
||||||
lastStart = i;
|
lastStart = i;
|
||||||
Com_Memset(out, 0, 1024*1024);
|
Com_Memset(out, 0, 256*256);
|
||||||
xOut = 0;
|
xOut = 0;
|
||||||
yOut = 0;
|
yOut = 0;
|
||||||
ri.Free(imageBuff);
|
ri.Free(imageBuff);
|
||||||
|
|
Loading…
Reference in a new issue