mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
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 <jeremyhu@apple.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jeremy Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
9898bcf3f4
commit
3ecd6c6abd
2 changed files with 0 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue