summaryrefslogtreecommitdiff
path: root/src/rend2
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-02-11 14:33:38 -0600
committerTim Angus <tim@ngus.net>2013-02-16 21:54:30 +0000
commit9b78065a40eded80b4aaf2e3b9e4fb0097093787 (patch)
tree9e179dce77da8f9ce376641155af753f1a7da264 /src/rend2
parent59ef2fc683d7d8d74b73407f4f04d540d2aaeace (diff)
Fix renderering TrueType Fonts in Rend2
Reported by Axel Isouard (exidl)
Diffstat (limited to 'src/rend2')
-rw-r--r--src/rend2/tr_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rend2/tr_font.c b/src/rend2/tr_font.c
index 0c3d2236..21226709 100644
--- a/src/rend2/tr_font.c
+++ b/src/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;