From 3ecd6c6abdf16b3639ee741dde234c85747dcaf2 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 5 Dec 2016 19:52:45 +0000 Subject: glx: unify GLX_SGIX_pbuffer aliased declarations No point in having an identical code in two places. Not to mention that the Apple one incorrectly uses GLXDrawable as pbuf type. This change is both API and ABI safe since the header uses the correct GLXPbufferSGIX and both types are a typedef of the same primitive XID. Cc: Jeremy Huddleston Sequoia Signed-off-by: Emil Velikov Reviewed-by: Jeremy Sequoia --- src/glx/apple/glx_empty.c | 16 ---------------- src/glx/glx_pbuffer.c | 2 -- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/glx/apple/glx_empty.c b/src/glx/apple/glx_empty.c index 1e9593c6d45..33fffb5f61c 100644 --- a/src/glx/apple/glx_empty.c +++ b/src/glx/apple/glx_empty.c @@ -263,19 +263,3 @@ glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo) return NULL; } #endif - - -_X_EXPORT -GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX, - (Display * dpy, GLXDrawable pbuf), - (dpy, pbuf), glXDestroyPbuffer) - - _X_EXPORT GLX_ALIAS_VOID(glXSelectEventSGIX, - (Display * dpy, GLXDrawable drawable, - unsigned long mask), (dpy, drawable, mask), - glXSelectEvent) - - _X_EXPORT GLX_ALIAS_VOID(glXGetSelectedEventSGIX, - (Display * dpy, GLXDrawable drawable, - unsigned long *mask), (dpy, drawable, mask), - glXGetSelectedEvent) diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 24c073cb9ba..0c15d2ae4de 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -992,7 +992,6 @@ glXDestroyWindow(Display * dpy, GLXWindow win) #endif } -#ifndef GLX_USE_APPLEGL _GLX_PUBLIC GLX_ALIAS_VOID(glXDestroyGLXPbufferSGIX, (Display * dpy, GLXPbufferSGIX pbuf), @@ -1008,4 +1007,3 @@ GLX_ALIAS_VOID(glXGetSelectedEventSGIX, (Display * dpy, GLXDrawable drawable, unsigned long *mask), (dpy, drawable, mask), glXGetSelectedEvent) -#endif -- cgit v1.2.3