From: lordhavoc Date: Mon, 27 May 2002 06:54:54 +0000 (+0000) Subject: attempt at working around a NVIDIA 23.11 TNT driver bug which causes the menu text... X-Git-Tag: RELEASE_0_2_0_RC1~490 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e82a1f55315cbb76ea2f39e793a86a87f93a99c3;p=xonotic%2Fdarkplaces.git attempt at working around a NVIDIA 23.11 TNT driver bug which causes the menu text to be squished to the top git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1874 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index 88c6275e..e73bbcd6 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -427,13 +427,15 @@ void R_DrawQueue(void) if (!batch) { batch = true; - qglBegin(GL_QUADS); + qglBegin(GL_TRIANGLES); batchcount = 0; } //DrawQuad(dq->x, dq->y, w, h, 0, 0, 1, 1); qglTexCoord2f (0, 0);qglVertex2f (x , y ); qglTexCoord2f (1, 0);qglVertex2f (x+w, y ); qglTexCoord2f (1, 1);qglVertex2f (x+w, y+h); + qglTexCoord2f (0, 0);qglVertex2f (x , y ); + qglTexCoord2f (1, 1);qglVertex2f (x+w, y+h); qglTexCoord2f (0, 1);qglVertex2f (x , y+h); batchcount++; } @@ -452,13 +454,15 @@ void R_DrawQueue(void) if (!batch) { batch = true; - qglBegin(GL_QUADS); + qglBegin(GL_TRIANGLES); batchcount = 0; } //DrawQuad(dq->x, dq->y, dq->scalex, dq->scaley, 0, 0, 1, 1); qglTexCoord2f (0, 0);qglVertex2f (x , y ); qglTexCoord2f (1, 0);qglVertex2f (x+w, y ); qglTexCoord2f (1, 1);qglVertex2f (x+w, y+h); + qglTexCoord2f (0, 0);qglVertex2f (x , y ); + qglTexCoord2f (1, 1);qglVertex2f (x+w, y+h); qglTexCoord2f (0, 1);qglVertex2f (x , y+h); batchcount++; } @@ -478,7 +482,7 @@ void R_DrawQueue(void) if (!batch) { batch = true; - qglBegin(GL_QUADS); + qglBegin(GL_TRIANGLES); batchcount = 0; } while ((num = *str++) && x < vid.conwidth) @@ -493,6 +497,8 @@ void R_DrawQueue(void) qglTexCoord2f (s , t );qglVertex2f (x , y ); qglTexCoord2f (s+u, t );qglVertex2f (x+w, y ); qglTexCoord2f (s+u, t+v);qglVertex2f (x+w, y+h); + qglTexCoord2f (s , t );qglVertex2f (x , y ); + qglTexCoord2f (s+u, t+v);qglVertex2f (x+w, y+h); qglTexCoord2f (s , t+v);qglVertex2f (x , y+h); batchcount++; }