[Mesa-dev] [PATCH] glx: Alias glXFreeContextEXT to glXDestroyContext

Adam Jackson ajax at redhat.com
Mon Jun 13 11:13:20 PDT 2011


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/glx/glxcmds.c |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index ab6b61a..e4356dd 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;
 
@@ -381,12 +382,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
 */
@@ -1494,12 +1489,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,
-- 
1.7.5.2



More information about the mesa-dev mailing list