From: Kristian Høgsberg Date: Wed, 4 Aug 2010 12:43:08 +0000 (-0400) Subject: glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9da1c9da139327132dea57b18048a4eb386b6bad;p=mesa.git glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one This never ceases to entertain. --- diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index e57d10f0913..99384f8c371 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) {