]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
attempt at working around a NVIDIA 23.11 TNT driver bug which causes the menu text...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 May 2002 06:54:54 +0000 (06:54 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 27 May 2002 06:54:54 +0000 (06:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1874 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index 88c6275e3b2d3b07084acd18bbd300a8d0d4d890..e73bbcd6950d642cc0e6d46bfe999b61346e73ef 100644 (file)
--- 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++;
                                }