]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
fix a typo in vid_conwidth declaration
[xonotic/darkplaces.git] / gl_draw.c
index db8579f4d2c60420f1cc243f9dc3efdd6a6033b1..40146424c1f108b4f39179df95ffd156ab09e3cd 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -303,7 +303,7 @@ Draw_CachePic
 // FIXME: move this to client somehow
 cachepic_t     *Draw_CachePic (const char *path, qboolean persistent)
 {
-       int i, crc, hashkey;
+       int crc, hashkey;
        cachepic_t *pic;
        qpic_t *p;
        int flags;
@@ -657,6 +657,17 @@ void R_DrawQueue(void)
                case DRAWQUEUE_RESETCLIP:
                        GL_ScissorTest(false);
                        break;
+               case DRAWQUEUE_LINEWIDTH:
+                       qglLineWidth(x);
+                       break;
+               case DRAWQUEUE_LINES:
+                       mesh = (drawqueuemesh_t *)(dq + 1);
+                       GL_Color(c[0], c[1], c[2], c[3]);
+                       qglBegin(GL_LINE_LOOP);
+                       for (num = 0;num < mesh->num_vertices;num++)
+                               qglVertex2f(mesh->data_vertex3f[num*3+0], mesh->data_vertex3f[num*3+1]);
+                       qglEnd();
+                       break;
                }
        }