From 9c08f5b169e380c4b8f54d11b877bc15fe5b1b20 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 3 Aug 2002 06:13:35 +0000 Subject: [PATCH] fix a typo that caused weirdness with the lerping --- libs/video/renderer/gl/gl_draw.c | 13 ++++++++++++- libs/video/renderer/gl/gl_mod_alias.c | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/gl/gl_draw.c b/libs/video/renderer/gl/gl_draw.c index 5fa27e889..000ce5f02 100644 --- a/libs/video/renderer/gl/gl_draw.c +++ b/libs/video/renderer/gl/gl_draw.c @@ -364,7 +364,18 @@ static inline void flush_text (void) { qfglBindTexture (GL_TEXTURE_2D, char_texture); - qfglDrawElements (GL_QUADS, tVAcount, GL_UNSIGNED_INT, tVAindices); + if (0) { + qfglDrawElements (GL_QUADS, tVAcount, GL_UNSIGNED_INT, tVAindices); + } else { + int i; + + qfglBegin (GL_QUADS); + for (i = 0; i < tVAcount; i++) { + qfglTexCoord2fv (textCoords + tVAindices[i] * 2); + qfglVertex2fv (textVertices + tVAindices[i] * 2); + } + qfglEnd (); + } tVAcount = 0; tV = textVertices; tC = textCoords; diff --git a/libs/video/renderer/gl/gl_mod_alias.c b/libs/video/renderer/gl/gl_mod_alias.c index 11f53ff35..5cfee5185 100644 --- a/libs/video/renderer/gl/gl_mod_alias.c +++ b/libs/video/renderer/gl/gl_mod_alias.c @@ -422,7 +422,7 @@ GL_GetAliasFrameVerts (int frame, aliashdr_t *paliashdr, entity_t *e) verts1 = verts + e->pose1 * count; verts2 = verts + e->pose2 * count; - if (blend == 1.0) { + if (blend == 0.0) { verts = verts1; } else if (blend == 1.0) { verts = verts2;