mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 14:50:05 +01:00
Need to unref pixmaps backing pbuffers too.
This commit is contained in:
parent
d5ae85b5b7
commit
facb255fa9
1 changed files with 5 additions and 1 deletions
|
|
@ -109,8 +109,12 @@ static Bool DrawableGone(__GLXdrawable *glxPriv, XID xid)
|
|||
{
|
||||
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);
|
||||
break;
|
||||
}
|
||||
|
||||
glxPriv->pDraw = NULL;
|
||||
glxPriv->drawId = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue