From d24b81e0e0f4109f3256dc45b0adc5ffd59fb749 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 28 Oct 2011 15:40:01 -0400 Subject: dri: Remove cliprect information from __DRIdrawable --- src/gallium/state_trackers/dri/drm/dri2.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/gallium/state_trackers/dri') diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index e9644048215..d3db0ccda51 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -158,25 +158,8 @@ dri2_drawable_get_buffers(struct dri_drawable *drawable, &num_buffers, dri_drawable->loaderPrivate); } - if (buffers) { - /* set one cliprect to cover the whole dri_drawable */ - dri_drawable->x = 0; - dri_drawable->y = 0; - dri_drawable->backX = 0; - dri_drawable->backY = 0; - dri_drawable->numClipRects = 1; - dri_drawable->pClipRects[0].x1 = 0; - dri_drawable->pClipRects[0].y1 = 0; - dri_drawable->pClipRects[0].x2 = dri_drawable->w; - dri_drawable->pClipRects[0].y2 = dri_drawable->h; - dri_drawable->numBackClipRects = 1; - dri_drawable->pBackClipRects[0].x1 = 0; - dri_drawable->pBackClipRects[0].y1 = 0; - dri_drawable->pBackClipRects[0].x2 = dri_drawable->w; - dri_drawable->pBackClipRects[0].y2 = dri_drawable->h; - + if (buffers) *count = num_buffers; - } return buffers; } -- cgit v1.2.3