Skip to content
Snippets Groups Projects
Commit 5ad54217 authored by Mathias Fröhlich's avatar Mathias Fröhlich
Browse files

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: default avatarBrian Paul <brianp@vmware.com>
Signed-off-by: default avatarMathias Fröhlich <Mathias.Froehlich@web.de>
parent 0ed7603d
No related branches found
No related tags found
Loading
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment