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 e57d10f0913104550b61f7c84d743ead1980d6f0..99384f8c371fce73c85c09eba36f6ceae2ffd99c 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) {