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 d137a75..1395275 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 4bf04fa..6e2b16d 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;