mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
vbo: update comments for vbo_save_NotifyBegin()
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
4ea05bcba6
commit
af30987a69
1 changed files with 10 additions and 2 deletions
|
|
@ -924,8 +924,10 @@ _save_CallLists(GLsizei n, GLenum type, const GLvoid * v)
|
|||
|
||||
|
||||
|
||||
/* This begin is hooked into ... Updating of
|
||||
* ctx->Driver.CurrentSavePrimitive is already taken care of.
|
||||
/**
|
||||
* Called via ctx->Driver.NotifySaveBegin() when a glBegin is getting
|
||||
* compiled into a display list.
|
||||
* Updating of ctx->Driver.CurrentSavePrimitive is already taken care of.
|
||||
*/
|
||||
GLboolean
|
||||
vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode)
|
||||
|
|
@ -953,7 +955,13 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode)
|
|||
else {
|
||||
_mesa_install_save_vtxfmt(ctx, &save->vtxfmt);
|
||||
}
|
||||
|
||||
/* We need to call SaveFlushVertices() if there's state change */
|
||||
ctx->Driver.SaveNeedFlush = 1;
|
||||
|
||||
/* GL_TRUE means we've handled this glBegin here; don't compile a BEGIN
|
||||
* opcode into the display list.
|
||||
*/
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue