summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-10-29 06:13:19 +0100
committerMathias Fröhlich <[email protected]>2018-11-01 06:08:49 +0100
commitb00cb994ef35a35151eb4b970c0e252dee04f221 (patch)
treeebce42b7a2313af1d180d5b4eb5269c9a33efa12 /src/mesa
parentf2a52b3c250831e057d1788cc2c75a35bc467202 (diff)
vbo: Preserve vbo_save::no_current_update on primitive restart.
With this change we preserve the no_current_update property when we observe a glPrimitiveRestart call. That means that we now also get the no_current_update optimization for display lists that are made out of indexed draws using primitive restart. Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/vbo/vbo_save_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index dbdd5bfbcbc..05c894328e7 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -1277,10 +1277,11 @@ _save_PrimitiveRestartNV(void)
} else {
/* get current primitive mode */
GLenum curPrim = save->prims[save->prim_count - 1].mode;
+ bool no_current_update = save->no_current_update;
/* restart primitive */
CALL_End(GET_DISPATCH(), ());
- vbo_save_NotifyBegin(ctx, curPrim, false);
+ vbo_save_NotifyBegin(ctx, curPrim, no_current_update);
}
}