Mesa (master): glx: Add a little comment about what dri2FlushFrontBuffer() does.

Eric Anholt anholt at kemper.freedesktop.org
Thu Feb 7 21:56:49 UTC 2013


Module: Mesa
Branch: master
Commit: 95080ca8d4f0cbda9015f664335c32a411a86572
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95080ca8d4f0cbda9015f664335c32a411a86572

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 28 12:13:07 2012 -0800

glx: Add a little comment about what dri2FlushFrontBuffer() does.

Reviewed-by: Marek Olšák <maraeo at gmail.com>

---

 src/glx/dri2_glx.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 78a2a42..2686f3b 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -645,6 +645,10 @@ dri2_wait_gl(struct glx_context *gc)
    dri2_copy_drawable(priv, DRI2BufferFrontLeft, DRI2BufferFakeFrontLeft);
 }
 
+/**
+ * Called by the driver when it needs to update the real front buffer with the
+ * contents of its fake front buffer.
+ */
 static void
 dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
 {




More information about the mesa-commit mailing list