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>
This commit is contained in:
parent
0ed7603d97
commit
5ad54217ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue