summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Fröhlich <mathias.froehlich@web.de>2019-04-29 07:23:58 +0200
committerMathias Fröhlich <mathias.froehlich@web.de>2019-05-04 07:40:35 +0200
commit5ad54217ff88e34706995b8645a1be35e0c76441 (patch)
treee2b03fb875caef0103d136ab062f8a85ebf43e83 /src
parent0ed7603d97bb7bab719dc28eac291fbfb8160d2e (diff)
mesa: Set CurrentSavePrimitive in vbo_save_NotifyBegin.
That seems to be lost somewhere. Is needed for correct outside begin/end detection in display list compilation. And is needed for correct aliasing in dlists restablished in the next changes. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_save_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index f9f0e641a5d..b33dfa5fd8e 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -1198,6 +1198,8 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode,
struct vbo_save_context *save = &vbo_context(ctx)->save;
const GLuint i = save->prim_count++;
+ ctx->Driver.CurrentSavePrimitive = mode;
+
assert(i < save->prim_max);
save->prims[i].mode = mode & VBO_SAVE_PRIM_MODE_MASK;
save->prims[i].begin = 1;