summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-02-26 12:13:06 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-02-26 12:20:04 +0100
commitdcc077c753137f37aa58231f1df3c4adb92b2c4b (patch)
tree33e78d89c16dde574d9013445df3a100c0a51a06 /GL
parentc46f7b62d2bf9f35937cfef98325ed904895396a (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.c4
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, &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. */