AIGLX: Switch to server context for calling DamageDamageRegion().
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=14518 .
This commit is contained in:
parent
c46f7b62d2
commit
dcc077c753
|
@ -798,10 +798,14 @@ static void __glXReportDamage(__DRIdrawable *driDraw,
|
|||
DrawablePtr pDraw = drawable->base.pDraw;
|
||||
RegionRec region;
|
||||
|
||||
__glXenterServer(GL_FALSE);
|
||||
|
||||
REGION_INIT(pDraw->pScreen, ®ion, (BoxPtr) rects, num_rects);
|
||||
REGION_TRANSLATE(pScreen, ®ion, pDraw->x, pDraw->y);
|
||||
DamageDamageRegion(pDraw, ®ion);
|
||||
REGION_UNINIT(pDraw->pScreen, ®ion);
|
||||
|
||||
__glXleaveServer(GL_FALSE);
|
||||
}
|
||||
|
||||
/* Table of functions that we export to the driver. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user