draw: Fixed typo in draw_pt_varray and added comments
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 27 May 2008 11:15:52 +0000 (13:15 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 27 May 2008 11:28:47 +0000 (13:28 +0200)
src/gallium/auxiliary/draw/draw_pt_varray.c

index 06fd866ccd099dcc77da3e004367acfc25ef824c..260f28f2845d9209ae2c8ed9de86936c9a3b0606 100644 (file)
@@ -158,14 +158,14 @@ static INLINE void varray_point( struct varray_frontend *varray,
 static unsigned decompose_prim[PIPE_PRIM_POLYGON + 1] = {
    PIPE_PRIM_POINTS,
    PIPE_PRIM_LINES,
+   PIPE_PRIM_LINES,             /* decomposed LINELOOP */
    PIPE_PRIM_LINE_STRIP,
-   PIPE_PRIM_LINES,             /* decomposed */
    PIPE_PRIM_TRIANGLES,
    PIPE_PRIM_TRIANGLE_STRIP,
-   PIPE_PRIM_TRIANGLES,         /* decomposed */
+   PIPE_PRIM_TRIANGLES,         /* decomposed TRI_FAN */
    PIPE_PRIM_QUADS,
    PIPE_PRIM_QUAD_STRIP,
-   PIPE_PRIM_TRIANGLES          /* decomposed */
+   PIPE_PRIM_TRIANGLES          /* decomposed POLYGON */
 };