glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 4 Aug 2010 12:43:08 +0000 (08:43 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 4 Aug 2010 12:47:36 +0000 (08:47 -0400)
This never ceases to entertain.

src/glx/dri2_glx.c

index e57d10f..99384f8 100644 (file)
@@ -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) {