- real_glXSwapBuffers (dpy, drawable);
-}
-
-void
-(*glXGetProcAddressARB (const GLubyte *func))(void)
-{
- static typeof(&glXGetProcAddressARB) real_glXGetProcAddressARB = NULL;
-
- if (strcmp((char *) func, "glXSwapBuffers") == 0)
- return (void*) glXSwapBuffers;
-
- if (real_glXGetProcAddressARB == NULL)
- real_glXGetProcAddressARB = dlsym (RTLD_NEXT, "glXGetProcAddressARB");
-
- return real_glXGetProcAddressARB (func);
-}
-
-void
-(*glXGetProcAddress (const GLubyte *func))(void)
-{
- static typeof(&glXGetProcAddress) real_glXGetProcAddress = NULL;
-
- if (strcmp((char *) func, "glXSwapBuffers") == 0)
- return (void*) glXSwapBuffers;
-
- if (real_glXGetProcAddress == NULL)
- real_glXGetProcAddress = dlsym (RTLD_NEXT, "glXGetProcAddress");
-
- return real_glXGetProcAddress (func);