Fix renderering TrueType Fonts in Rend2
Reported by Axel Isouard (exidl)
This commit is contained in:
parent
75598f1a2b
commit
d815052df0
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Com_sprintf (name, sizeof(name), "fonts/fontImage_%i_%i", imageNumber++, pointSize);
|
//Com_sprintf (name, sizeof(name), "fonts/fontImage_%i_%i", imageNumber++, pointSize);
|
||||||
image = R_CreateImage(name, imageBuff, 256, 256, qfalse, qfalse, GL_CLAMP_TO_EDGE);
|
image = R_CreateImage(name, imageBuff, 256, 256, IMGTYPE_COLORALPHA, IMGFLAG_CLAMPTOEDGE, 0 );
|
||||||
h = RE_RegisterShaderFromImage(name, LIGHTMAP_2D, image, qfalse);
|
h = RE_RegisterShaderFromImage(name, LIGHTMAP_2D, image, qfalse);
|
||||||
for (j = lastStart; j < i; j++) {
|
for (j = lastStart; j < i; j++) {
|
||||||
font->glyphs[j].glyph = h;
|
font->glyphs[j].glyph = h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue