summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/omap_dri2.c6
-rw-r--r--src/omap_xv.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/omap_dri2.c b/src/omap_dri2.c
index a2a9f7f..a81e3c9 100644
--- a/src/omap_dri2.c
+++ b/src/omap_dri2.c
@@ -258,8 +258,10 @@ OMAPDRI2CreateBuffer(DrawablePtr pDraw, unsigned int attachment,
PixmapPtr pNewPix = createpix(pDraw, TRUE);
// TODO copy contents..
+
OMAPPixmapExchange(pPixmap, pNewPix);
- dixDestroyPixmap(pNewPix, 0);
+
+ pScreen->DestroyPixmap(pNewPix);
}
pPixmap->refcnt++;
@@ -318,7 +320,7 @@ OMAPDRI2DestroyBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer)
if (buffer->attachment == DRI2BufferFrontLeft && buf->pPixmap->refcnt)
buf->pPixmap->refcnt--;
else
- dixDestroyPixmap(buf->pPixmap, 0);
+ pScreen->DestroyPixmap(buf->pPixmap);
free(buf);
}
diff --git a/src/omap_xv.c b/src/omap_xv.c
index 15d7280..b1b9c1f 100644
--- a/src/omap_xv.c
+++ b/src/omap_xv.c
@@ -78,7 +78,7 @@ setupplane(ScreenPtr pScreen, PixmapPtr pSrcPix, int width, int height,
if (pSrcPix && ((pSrcPix->drawable.height != height) ||
(pSrcPix->drawable.width != width))) {
- dixDestroyPixmap(pSrcPix, 0);
+ pScreen->DestroyPixmap(pSrcPix);
pSrcPix = NULL;
}
@@ -110,7 +110,7 @@ freebufs(ScreenPtr pScreen, OMAPPortPrivPtr pPriv)
int i;
for (i = 0; i < ARRAY_SIZE(pPriv->pSrcPix); i++) {
if (pPriv->pSrcPix[i])
- dixDestroyPixmap(pPriv->pSrcPix[i], 0);
+ pScreen->DestroyPixmap(pPriv->pSrcPix[i]);
pPriv->pSrcPix[i] = NULL;
}
}