From d815052df043c0bb4ff43d87c9206750878a03bb Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 11 Feb 2013 14:33:38 -0600 Subject: [PATCH] Fix renderering TrueType Fonts in Rend2 Reported by Axel Isouard (exidl) --- code/rend2/tr_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/rend2/tr_font.c b/code/rend2/tr_font.c index 0c3d2236..21226709 100644 --- a/code/rend2/tr_font.c +++ b/code/rend2/tr_font.c @@ -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;