From: Brian Paul Date: Wed, 20 Aug 2008 16:27:30 +0000 (-0600) Subject: gallium: fix typo in LINE() macro (replace i+1 with i1 var) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6abdb20437b1b8d27d8c45c0787017dfcad3497;p=mesa.git gallium: fix typo in LINE() macro (replace i+1 with i1 var) We were sometimes referencing an invalid vertex. Fixes progs/trivial/line-clip.c test among others. --- diff --git a/src/gallium/auxiliary/draw/draw_pipe.c b/src/gallium/auxiliary/draw/draw_pipe.c index 3355c871ee3..1db43876efb 100644 --- a/src/gallium/auxiliary/draw/draw_pipe.c +++ b/src/gallium/auxiliary/draw/draw_pipe.c @@ -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, \