Mesa (master): mesa: added FLUSH_VERTICES(), more comments
Brian Paul
brianp at kemper.freedesktop.org
Thu Dec 31 15:54:56 UTC 2009
Module: Mesa
Branch: master
Commit: 5a0eb89da56aeaded17fee213bb4f00607b13a5c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a0eb89da56aeaded17fee213bb4f00607b13a5c
Author: Brian Paul <brianp at vmware.com>
Date: Wed Dec 30 21:37:54 2009 -0700
mesa: added FLUSH_VERTICES(), more comments
---
src/mesa/main/condrender.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/condrender.c b/src/mesa/main/condrender.c
index 4e1989c..c292b8a 100644
--- a/src/mesa/main/condrender.c
+++ b/src/mesa/main/condrender.c
@@ -89,6 +89,8 @@ _mesa_EndConditionalRender(void)
{
GET_CURRENT_CONTEXT(ctx);
+ FLUSH_VERTICES(ctx, 0x0);
+
if (!ctx->Extensions.NV_conditional_render || !ctx->Query.CondRenderQuery) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glEndConditionalRender()");
return;
@@ -103,12 +105,14 @@ _mesa_EndConditionalRender(void)
/**
- * This function is called by software rendering commands to determine if
- * subsequent drawing commands should be executed or discarded depending
- * on the current conditional rendering state.
- * Ideally, this check would be implemented by the GPU when doing hardware
- * rendering.
- * XXX should this function be called via a new driver hook?
+ * This function is called by software rendering commands (all point,
+ * line triangle drawing, glClear, glDrawPixels, glCopyPixels, and
+ * glBitmap, glBlitFramebuffer) to determine if subsequent drawing
+ * commands should be
+ * executed or discarded depending on the current conditional
+ * rendering state. Ideally, this check would be implemented by the
+ * GPU when doing hardware rendering. XXX should this function be
+ * called via a new driver hook?
*
* \return GL_TRUE if we should render, GL_FALSE if we should discard
*/
More information about the mesa-commit
mailing list