summaryrefslogtreecommitdiff
path: root/glx/glxext.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-01-11 14:56:24 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-01-11 16:17:15 -0500
commit84956ca43b087600d9db297cffd62e960c516d9e (patch)
tree43e12fd43c620b9bc977a1823b216b182bed9d86 /glx/glxext.c
parent04a54f69a8085ab3fe11a8713bd8b6b16ed1db27 (diff)
GLX/DRI2: add INTEL_swap_event support
This allows clients to easily check for swap completion status in their main loop. Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Adam Jackson <ajax@nwnk.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'glx/glxext.c')
-rw-r--r--glx/glxext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glx/glxext.c b/glx/glxext.c
index 913c624f2..59bcfbed2 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -267,6 +267,7 @@ GLboolean __glXErrorOccured(void)
}
static int __glXErrorBase;
+int __glXEventBase;
int __glXError(int error)
{
@@ -403,6 +404,7 @@ void GlxExtensionInit(void)
}
__glXErrorBase = extEntry->errorBase;
+ __glXEventBase = extEntry->eventBase;
}
/************************************************************************/