diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2008-02-26 12:13:06 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2008-02-26 12:20:04 +0100 |
commit | dcc077c753137f37aa58231f1df3c4adb92b2c4b (patch) | |
tree | 33e78d89c16dde574d9013445df3a100c0a51a06 /GL | |
parent | c46f7b62d2bf9f35937cfef98325ed904895396a (diff) |
AIGLX: Switch to server context for calling DamageDamageRegion().
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=14518 .
Diffstat (limited to 'GL')
-rw-r--r-- | GL/glx/glxdri.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c index 304fed2bd..f51a5310d 100644 --- a/GL/glx/glxdri.c +++ b/GL/glx/glxdri.c @@ -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. */ |