mesa; change ctx->Driver.SaveNeedFlush to boolean, and document it.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2013-05-03 19:00:07 -06:00
parent af30987a69
commit 36c83ccca0
2 changed files with 6 additions and 5 deletions

View file

@ -703,8 +703,9 @@ struct dd_function_table {
* these conditions.
*/
GLuint NeedFlush;
GLuint SaveNeedFlush;
/** Need to call SaveFlushVertices() upon state change? */
GLboolean SaveNeedFlush;
/* Called prior to any of the GLvertexformat functions being
* called. Paired with Driver.FlushVertices().

View file

@ -854,7 +854,7 @@ dlist_fallback(struct gl_context *ctx)
else {
_mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt);
}
ctx->Driver.SaveNeedFlush = 0;
ctx->Driver.SaveNeedFlush = GL_FALSE;
}
@ -957,7 +957,7 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode)
}
/* We need to call SaveFlushVertices() if there's state change */
ctx->Driver.SaveNeedFlush = 1;
ctx->Driver.SaveNeedFlush = GL_TRUE;
/* GL_TRUE means we've handled this glBegin here; don't compile a BEGIN
* opcode into the display list.
@ -1380,7 +1380,7 @@ vbo_save_SaveFlushVertices(struct gl_context *ctx)
_save_copy_to_current(ctx);
_save_reset_vertex(ctx);
_save_reset_counters(ctx);
ctx->Driver.SaveNeedFlush = 0;
ctx->Driver.SaveNeedFlush = GL_FALSE;
}
@ -1402,7 +1402,7 @@ vbo_save_NewList(struct gl_context *ctx, GLuint list, GLenum mode)
_save_reset_vertex(ctx);
_save_reset_counters(ctx);
ctx->Driver.SaveNeedFlush = 0;
ctx->Driver.SaveNeedFlush = GL_FALSE;
}