diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-07-21 16:05:53 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-07-21 16:05:53 -0400 |
commit | facb255fa9267e343cbc91f841f1b64e5dc99e98 (patch) | |
tree | efa5cc18e5d0c26ea9a4f43df3e648ad8502dcfa /glx | |
parent | d5ae85b5b722821499d5796cf0973ecb6ec125f1 (diff) |
Need to unref pixmaps backing pbuffers too.
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxext.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glx/glxext.c b/glx/glxext.c index cd92f6d0a..13c65dade 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -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; |