r600: fix counting error after the last commit
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 17 Aug 2009 22:16:38 +0000 (18:16 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 17 Aug 2009 22:16:38 +0000 (18:16 -0400)
src/mesa/drivers/dri/r600/r700_render.c

index 9e2971a34366bdd1aafb36d6253c370aaee9ae9e..6985bd4ffabcfe72460d179f87730ca325e5cd01 100644 (file)
@@ -323,7 +323,7 @@ static void r700RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim
         R600_OUT_BATCH(vgt_num_indices);
         R600_OUT_BATCH(vgt_draw_initiator);
 
-        for (i = start; i < end; i++) {
+        for (i = start; i < (start + num_indices); i++) {
             R600_OUT_BATCH(i);
         }
         END_BATCH();