Need to unref pixmaps backing pbuffers too.

This commit is contained in:
Kristian Høgsberg 2008-07-21 16:05:53 -04:00
parent d5ae85b5b7
commit facb255fa9

View File

@ -109,8 +109,12 @@ static Bool DrawableGone(__GLXdrawable *glxPriv, XID xid)
{ {
ScreenPtr pScreen = glxPriv->pDraw->pScreen; ScreenPtr pScreen = glxPriv->pDraw->pScreen;
if (glxPriv->type == GLX_DRAWABLE_PIXMAP) switch (glxPriv->type) {
case GLX_DRAWABLE_PIXMAP:
case GLX_DRAWABLE_PBUFFER:
(*pScreen->DestroyPixmap)((PixmapPtr) glxPriv->pDraw); (*pScreen->DestroyPixmap)((PixmapPtr) glxPriv->pDraw);
break;
}
glxPriv->pDraw = NULL; glxPriv->pDraw = NULL;
glxPriv->drawId = 0; glxPriv->drawId = 0;