fix quad strips
authorZack Rusin <zack@tungstengraphics.com>
Thu, 8 May 2008 19:11:16 +0000 (15:11 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Thu, 8 May 2008 19:26:37 +0000 (15:26 -0400)
src/gallium/auxiliary/draw/draw_pt_varray_tmp.h
src/gallium/auxiliary/draw/draw_pt_varray_tmp_linear.h

index d137a758e2701133597c926c43f489d94eaf2069..1395275897629fe909eea9c21d19330670073d0d 100644 (file)
@@ -188,6 +188,10 @@ static void FUNC(struct draw_pt_front_end *frontend,
          i = end;
          fetch_init(varray, end);
          varray_flush(varray);
+         if (j + first + i <= count) {
+            varray->fetch_start -= 2;
+            i -= 2;
+         }
       }
       break;
 
index 4bf04fa62b6a0154918ffc3968ac1742d6722e76..6e2b16d9be2af761dd6b8866df0406b26d135539 100644 (file)
@@ -159,6 +159,10 @@ static void FUNC(struct draw_pt_front_end *frontend,
          i = end;
          fetch_init(varray, end);
          varray_flush(varray);
+         if (j + first + i <= count) {
+            varray->fetch_start -= 2;
+            i -= 2;
+         }
       }
       break;