diff options
author | Keith Packard <keithp@keithp.com> | 2012-08-06 16:42:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-06 16:42:34 -0700 |
commit | 360fa7736b214cae3ccd39feb4dc87b9e7e9734c (patch) | |
tree | 192beae5a89f415210a44cba56f620fcbcac060d /hw/xfree86 | |
parent | 2100e72388a3dc174093d80c9723f021b4614d17 (diff) | |
parent | ac09a4a091a43188241365152e1244fd8fd93ee7 (diff) |
Merge remote-tracking branch 'airlied/for-keithp'
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/dri2/dri2.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 63feed51a..23f589cdc 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -409,6 +409,11 @@ DRI2DrawableGone(pointer p, XID id) dixSetPrivate(&pPixmap->devPrivates, dri2PixmapPrivateKey, NULL); } + if (pPriv->prime_slave_pixmap) { + (*pPriv->prime_slave_pixmap->master_pixmap->drawable.pScreen->DestroyPixmap)(pPriv->prime_slave_pixmap->master_pixmap); + (*pPriv->prime_slave_pixmap->drawable.pScreen->DestroyPixmap)(pPriv->prime_slave_pixmap); + } + if (pPriv->buffers != NULL) { for (i = 0; i < pPriv->bufferCount; i++) destroy_buffer(pDraw, pPriv->buffers[i], pPriv->prime_id); @@ -811,8 +816,9 @@ DrawablePtr DRI2UpdatePrime(DrawablePtr pDraw, DRI2BufferPtr pDest) if (pPriv->prime_slave_pixmap->master_pixmap == mpix) return &pPriv->prime_slave_pixmap->drawable; else { - (*master->DestroyPixmap)(pPriv->prime_slave_pixmap->master_pixmap); + (*pPriv->prime_slave_pixmap->master_pixmap->drawable.pScreen->DestroyPixmap)(pPriv->prime_slave_pixmap->master_pixmap); (*slave->DestroyPixmap)(pPriv->prime_slave_pixmap); + pPriv->prime_slave_pixmap = NULL; } } |