From: Alex Deucher Date: Mon, 17 Aug 2009 22:16:38 +0000 (-0400) Subject: r600: fix counting error after the last commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af1dc225c2af6fd188cee8b0e2447d6b769518b3;p=mesa.git r600: fix counting error after the last commit --- diff --git a/src/mesa/drivers/dri/r600/r700_render.c b/src/mesa/drivers/dri/r600/r700_render.c index 9e2971a3436..6985bd4ffab 100644 --- a/src/mesa/drivers/dri/r600/r700_render.c +++ b/src/mesa/drivers/dri/r600/r700_render.c @@ -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();