From: Adam Jackson Date: Fri, 28 May 2004 16:50:42 +0000 (+0000) Subject: Fix type conflict. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd630037a2ec50296f60f22a25ed101b7663324a;p=mesa.git Fix type conflict. --- diff --git a/src/mesa/drivers/dri/i810/i810ioctl.c b/src/mesa/drivers/dri/i810/i810ioctl.c index 829ad04c7e5..1e49d1782e4 100644 --- a/src/mesa/drivers/dri/i810/i810ioctl.c +++ b/src/mesa/drivers/dri/i810/i810ioctl.c @@ -204,7 +204,8 @@ void i810PageFlip( const __DRIdrawablePrivate *dPriv ) LOCK_HARDWARE( imesa ); if (dPriv->pClipRects) { - imesa->sarea->boxes[0] = dPriv->pClipRects[0]; + memcpy(&(imesa->sarea->boxes[0]), &(dPriv->pClipRects[0]), + sizeof(drm_clip_rect_t)); imesa->sarea->nbox = 1; } ret = drmCommandNone(imesa->driFd, DRM_I810_FLIP);