diff --git a/glx/glxext.c b/glx/glxext.c index cab58f8f73..a52e99529d 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -126,7 +126,7 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid) /* drop our reference to any backing pixmap */ if (glxPriv->type == GLX_DRAWABLE_PIXMAP) - glxPriv->pDraw->pScreen->DestroyPixmap((PixmapPtr) glxPriv->pDraw); + dixDestroyPixmap((PixmapPtr)glxPriv->pDraw, 0); glxPriv->destroy(glxPriv);