gallium: fix typo in LINE() macro (replace i+1 with i1 var)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 20 Aug 2008 16:27:30 +0000 (10:27 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 20 Aug 2008 16:32:26 +0000 (10:32 -0600)
We were sometimes referencing an invalid vertex.
Fixes progs/trivial/line-clip.c test among others.

src/gallium/auxiliary/draw/draw_pipe.c

index 3355c871ee310c2f97361f001017575225a9bc99..1db43876efbf65ec99a1eccb24679c2502c61f7f 100644 (file)
@@ -238,7 +238,7 @@ void draw_pipeline_run( struct draw_context *draw,
    do_line( draw,                                           \
             flags,                                          \
             verts + stride * ((i0) & ~DRAW_PIPE_FLAG_MASK), \
-            verts + stride * (i+1))
+            verts + stride * (i1))
 
 #define POINT(i0)                               \
    do_point( draw,                              \