Mesa (master): glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one

Kristian Høgsberg krh at kemper.freedesktop.org
Wed Aug 4 12:48:48 UTC 2010


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

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Wed Aug  4 08:43:08 2010 -0400

glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one

This never ceases to entertain.

---

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

diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index e57d10f..99384f8 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -439,7 +439,7 @@ dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
 
    /* Old servers don't send invalidate events */
    if (!pdp->invalidateAvailable)
-       dri2InvalidateBuffers(priv->dpy, pdraw->base.drawable);
+       dri2InvalidateBuffers(priv->dpy, pdraw->base.xDrawable);
 
    dri2_wait_gl(gc);
 }
@@ -507,7 +507,7 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
 
     /* Old servers don't send invalidate events */
     if (!pdp->invalidateAvailable)
-       dri2InvalidateBuffers(dpyPriv->dpy, pdraw->drawable);
+       dri2InvalidateBuffers(dpyPriv->dpy, pdraw->xDrawable);
 
     /* Old servers can't handle swapbuffers */
     if (!pdp->swapAvailable) {




More information about the mesa-commit mailing list