Fix type conflict.
authorAdam Jackson <ajax@freedesktop.org>
Fri, 28 May 2004 16:50:42 +0000 (16:50 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Fri, 28 May 2004 16:50:42 +0000 (16:50 +0000)
src/mesa/drivers/dri/i810/i810ioctl.c

index 829ad04c7e546a31ddfea9df9f2c480ce7c35f23..1e49d1782e403ecd0771fdc8b517db464c95adb5 100644 (file)
@@ -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);