mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glx: use GLX_ALIAS for glXGetProcAddress
Use the macro, rather than open-coding it. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
dfc84c2296
commit
9898bcf3f4
1 changed files with 4 additions and 13 deletions
|
|
@ -2663,19 +2663,10 @@ _GLX_PUBLIC void (*glXGetProcAddressARB(const GLubyte * procName)) (void)
|
|||
*
|
||||
* \sa glXGetProcAddressARB
|
||||
*/
|
||||
_GLX_PUBLIC void (*glXGetProcAddress(const GLubyte * procName)) (void)
|
||||
# ifdef HAVE_FUNC_ATTRIBUTE_ALIAS
|
||||
# if defined(USE_MGL_NAMESPACE)
|
||||
__attribute__ ((alias("mglXGetProcAddressARB")));
|
||||
# else
|
||||
__attribute__ ((alias("glXGetProcAddressARB")));
|
||||
# endif
|
||||
#else
|
||||
{
|
||||
return glXGetProcAddressARB(procName);
|
||||
}
|
||||
#endif /* HAVE_FUNC_ATTRIBUTE_ALIA */
|
||||
|
||||
_GLX_PUBLIC
|
||||
GLX_ALIAS(__GLXextFuncPtr, glXGetProcAddress,
|
||||
(const GLubyte * procName),
|
||||
(procName), glXGetProcAddressARB)
|
||||
|
||||
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue