summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2011-04-15 21:13:04 +0100
committerBrian Paul <[email protected]>2011-10-19 10:10:12 -0600
commit72bd2b603bc400371a92d34ab59dbb2d2ef7a123 (patch)
treeebac56def7878c680232e7574e8e52524cad0550 /src/mesa/state_tracker/st_extensions.c
parentd3561bd0bc4a88ee0500460f8e0830a818e456a9 (diff)
st/mesa: Implement primitive restart in software
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index a1f029089d0..37f36de9381 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -555,8 +555,9 @@ void st_init_extensions(struct st_context *st)
#endif
}
- if (screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
- ctx->Extensions.NV_primitive_restart = GL_TRUE;
+ ctx->Extensions.NV_primitive_restart = GL_TRUE;
+ if (!screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
+ st->sw_primitive_restart = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_DEPTH_CLAMP)) {