Bugzilla – Attachment #72842: Workaround for compiz currently needed for using CopySubBuffer for bug #157051
if (timeToNextRedraw == 0)
{
static int init = 0;
gettimeofday (&tv, 0);
timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw);
BoxPtr pBox;
int nBox, y;
pBox = tmpRegion->rects;
nBox = tmpRegion->numRects;
if (s->copySubBuffer)
if (s->copySubBuffer && init)
while (nBox--)
pBox->x2 - pBox->x1,
pBox->y2 - pBox->y1,
GL_COLOR);
init = 1;
pBox++;
}