eglSwapBuffers (EGLDisplay dpy, EGLSurface surface)
{
EGLBoolean ret;
- static typeof(&eglSwapBuffers) real_eglSwapBuffers;
+ static typeof(&eglSwapBuffers) eglwrap_real_eglSwapBuffers;
- if (! real_eglSwapBuffers)
- real_eglSwapBuffers = eglwrap_lookup ("eglSwapBuffers");
+ if (! eglwrap_real_eglSwapBuffers)
+ eglwrap_real_eglSwapBuffers = eglwrap_lookup ("eglSwapBuffers");
- ret = real_eglSwapBuffers (dpy, surface);
+ ret = eglwrap_real_eglSwapBuffers (dpy, surface);
metrics_end_frame ();
glXGetProcAddressARB (const GLubyte *func)
{
__GLXextFuncPtr ptr;
- static fips_glXGetProcAddressARB_t real_glXGetProcAddressARB = NULL;
+ static fips_glXGetProcAddressARB_t glxwrap_real_glXGetProcAddressARB = NULL;
char *name = "glXGetProcAddressARB";
- if (! real_glXGetProcAddressARB) {
- real_glXGetProcAddressARB = glwrap_lookup (name);
- if (! real_glXGetProcAddressARB) {
+ if (! glxwrap_real_glXGetProcAddressARB) {
+ glxwrap_real_glXGetProcAddressARB = glwrap_lookup (name);
+ if (! glxwrap_real_glXGetProcAddressARB) {
fprintf (stderr, "Error: Failed to find function %s.\n",
name);
return NULL;
return ptr;
/* Otherwise, just defer to the real glXGetProcAddressARB. */
- return real_glXGetProcAddressARB (func);
+ return glxwrap_real_glXGetProcAddressARB (func);
}