From 7b2096db3a955c82784114f5e29062c61107f7f6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 2 Aug 2010 02:13:49 +0000 Subject: [PATCH] don't begin/end on every single character draw git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5518 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendertext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/rendertext.cpp b/source/src/rendertext.cpp index 46042166..3497a6ea 100644 --- a/source/src/rendertext.cpp +++ b/source/src/rendertext.cpp @@ -241,11 +241,12 @@ font::charinfo *loadchar(int code) */ int draw_char(font &f, font::charinfo &info, int charcode, int x, int y) { +/* // fixme glEnd(); glBindTexture(GL_TEXTURE_2D, f.tex->id); glBegin(GL_QUADS); - +*/ float tc_left = (info.x + f.offsetx) / float(f.tex->xs); float tc_top = (info.y + f.offsety) / float(f.tex->ys); float tc_right = (info.x + info.w + f.offsetw) / float(f.tex->xs);