AIGLX: Switch to server context for calling DamageDamageRegion().

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=14518 .
This commit is contained in:
Michel Dänzer 2008-02-26 12:13:06 +01:00
parent c46f7b62d2
commit dcc077c753

View File

@ -798,10 +798,14 @@ static void __glXReportDamage(__DRIdrawable *driDraw,
DrawablePtr pDraw = drawable->base.pDraw;
RegionRec region;
__glXenterServer(GL_FALSE);
REGION_INIT(pDraw->pScreen, &region, (BoxPtr) rects, num_rects);
REGION_TRANSLATE(pScreen, &region, pDraw->x, pDraw->y);
DamageDamageRegion(pDraw, &region);
REGION_UNINIT(pDraw->pScreen, &region);
__glXleaveServer(GL_FALSE);
}
/* Table of functions that we export to the driver. */