aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-10-21 19:03:38 -0600
committerBrian Paul <[email protected]>2010-10-21 19:03:38 -0600
commit053875a8b193481a7b1c209d9adf9d3d85788884 (patch)
treeb45bc9b0961086ef8a0493aa814087b4aa650187 /src/mesa/state_tracker/st_draw.c
parentadf35e80d3b3d37b97f0608a5a2f221dbd8c0d64 (diff)
st/mesa: support for primitive restart
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r--src/mesa/state_tracker/st_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index f6f5bb17938..5387499eb94 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -703,6 +703,9 @@ st_draw_vbo(struct gl_context *ctx,
}
}
+ info.primitive_restart = st->ctx->Array.PrimitiveRestart;
+ info.restart_index = st->ctx->Array.RestartIndex;
+
/* do actual drawing */
for (i = 0; i < nr_prims; i++) {
info.mode = translate_prim( ctx, prims[i].mode );