Mesa (master): mesa; change ctx->Driver.SaveNeedFlush to boolean, and document it.
Brian Paul
brianp at kemper.freedesktop.org
Sat May 4 01:01:28 UTC 2013
Module: Mesa
Branch: master
Commit: 36c83ccca0857dd4cf6b6168b60f5e95ac07fc73
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=36c83ccca0857dd4cf6b6168b60f5e95ac07fc73
Author: Brian Paul <brianp at vmware.com>
Date: Fri May 3 19:00:07 2013 -0600
mesa; change ctx->Driver.SaveNeedFlush to boolean, and document it.
Reviewed-by: José Fonseca <jfonseca at vmware.com>
---
src/mesa/main/dd.h | 3 ++-
src/mesa/vbo/vbo_save_api.c | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index bc93026..c5531a4 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -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().
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c
index a18d11d..dd13c49 100644
--- a/src/mesa/vbo/vbo_save_api.c
+++ b/src/mesa/vbo/vbo_save_api.c
@@ -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;
}
More information about the mesa-commit
mailing list