GLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffers
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 2 Apr 2010 00:26:04 +0000 (17:26 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 2 Apr 2010 00:29:19 +0000 (17:29 -0700)
The IDs will be the same in the case where an X window is used directly
as a GLX drawable, but will fail if a new GLX drawable is created
explicitly, as with glxgears_fbconfig.

Fixes fdo bug #27190.

src/glx/dri2_glx.c

index 14788b89bead096bb91c680bb12bf842df36822f..c4b5cb9c2c4b68e079c0570cf512f762cc8cf8a1 100644 (file)
@@ -329,7 +329,7 @@ dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
 
    /* Old servers don't send invalidate events */
    if (!pdp->invalidateAvailable)
-       dri2InvalidateBuffers(priv->dpy, pdraw->base.xDrawable);
+       dri2InvalidateBuffers(priv->dpy, pdraw->base.drawable);
 
    dri2WaitGL(loaderPrivate);
 }
@@ -393,7 +393,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->xDrawable);
+       dri2InvalidateBuffers(dpyPriv->dpy, pdraw->drawable);
 
     /* Old servers can't handle swapbuffers */
     if (!pdp->swapAvailable) {