Browse Source

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.
tags/mesa_20090313
Brian Paul 17 years ago
parent
commit
f6abdb2043
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/auxiliary/draw/draw_pipe.c

+ 1
- 1
src/gallium/auxiliary/draw/draw_pipe.c View 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, \

Loading…
Cancel
Save