summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2011-06-02 16:29:59 -0400
committerAdam Jackson <[email protected]>2011-06-29 14:07:18 -0400
commit9e2bc5d4b0385e374e06c0b26db266067a723bf3 (patch)
tree5cc1f78ce2fa6f8e511255be983558669c2490a9 /src
parent5ddc518401ae69ad92218643f00ef50617a0f11d (diff)
glx: Alias glXFreeContextEXT to glXDestroyContext
Signed-off-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/glxcmds.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index e6816ea1f62..21068184ce2 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -354,8 +354,9 @@ glx_send_destroy_context(Display *dpy, XID xid)
/*
** Destroy the named context
*/
-static void
-DestroyContext(Display * dpy, GLXContext ctx)
+
+_X_EXPORT void
+glXDestroyContext(Display * dpy, GLXContext ctx)
{
struct glx_context *gc = (struct glx_context *) ctx;
@@ -380,12 +381,6 @@ DestroyContext(Display * dpy, GLXContext ctx)
gc->vtable->destroy(gc);
}
-_X_EXPORT void
-glXDestroyContext(Display * dpy, GLXContext gc)
-{
- DestroyContext(dpy, gc);
-}
-
/*
** Return the major and minor version #s for the GLX extension
*/
@@ -1479,12 +1474,9 @@ _X_EXPORT GLXContextID glXGetContextIDEXT(const GLXContext ctx_user)
return ctx->xid;
}
-_X_EXPORT void
-glXFreeContextEXT(Display * dpy, GLXContext ctx)
-{
- DestroyContext(dpy, ctx);
-}
-
+_X_EXPORT
+GLX_ALIAS_VOID(glXFreeContextEXT, (Display *dpy, GLXContext ctx), (dpy, ctx),
+ glXDestroyContext);
_X_EXPORT GLXFBConfig *
glXChooseFBConfig(Display * dpy, int screen,