diff options
author | Kristian Høgsberg <[email protected]> | 2011-10-28 15:40:01 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-11-02 11:16:00 -0400 |
commit | d24b81e0e0f4109f3256dc45b0adc5ffd59fb749 (patch) | |
tree | 69e94f5deef4656cda82c35d71212c6b74a589fc /src/mesa/drivers/dri/common/dri_util.c | |
parent | 24002daf011bf05d7d088602dc32e60da1755f44 (diff) |
dri: Remove cliprect information from __DRIdrawable
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 945c85c06a6..6d78f82ce39 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -175,14 +175,8 @@ dri2CreateNewDrawable(__DRIscreen *screen, pdraw->pStamp = NULL; pdraw->lastStamp = 0; pdraw->index = 0; - pdraw->x = 0; - pdraw->y = 0; pdraw->w = 0; pdraw->h = 0; - pdraw->numClipRects = 0; - pdraw->numBackClipRects = 0; - pdraw->pClipRects = NULL; - pdraw->pBackClipRects = NULL; pdraw->vblSeq = 0; pdraw->vblFlags = 0; @@ -201,9 +195,6 @@ dri2CreateNewDrawable(__DRIscreen *screen, */ pdraw->swap_interval = (unsigned)-1; - pdraw->pClipRects = &pdraw->dri2.clipRect; - pdraw->pBackClipRects = &pdraw->dri2.clipRect; - pdraw->pStamp = &pdraw->dri2.stamp; *pdraw->pStamp = pdraw->lastStamp + 1; @@ -277,14 +268,6 @@ static void dri_put_drawable(__DRIdrawable *pdp) psp = pdp->driScreenPriv; (*psp->DriverAPI.DestroyBuffer)(pdp); - if (pdp->pClipRects && pdp->pClipRects != &pdp->dri2.clipRect) { - free(pdp->pClipRects); - pdp->pClipRects = NULL; - } - if (pdp->pBackClipRects && pdp->pClipRects != &pdp->dri2.clipRect) { - free(pdp->pBackClipRects); - pdp->pBackClipRects = NULL; - } free(pdp); } } |