Commit 053875a8 authored by Brian Paul's avatar Brian Paul

st/mesa: support for primitive restart

parent adf35e80
......@@ -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 );
......
......@@ -432,6 +432,10 @@ void st_init_extensions(struct st_context *st)
ctx->Extensions.ARB_geometry_shader4 = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
ctx->Extensions.NV_primitive_restart = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_DEPTH_CLAMP)) {
ctx->Extensions.ARB_depth_clamp = GL_TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment