Skip to content

Commit

Permalink
Fix renderering TrueType Fonts in Rend2
Browse files Browse the repository at this point in the history
Reported by Axel Isouard (exidl)
  • Loading branch information
zturtleman committed Feb 11, 2013
1 parent 75598f1 commit d815052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rend2/tr_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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);
for (j = lastStart; j < i; j++) {
font->glyphs[j].glyph = h;
Expand Down

0 comments on commit d815052

Please sign in to comment.