X-Git-Url: https://git.cworth.org/git?p=fips;a=blobdiff_plain;f=eglwrap.c;h=43b07babcf049a113a6729a1e41086e41b33a431;hp=913fd488d74a23dc0d7a9277dfe37525e3db776f;hb=8209db451b878656c1751223fb3d3f4a9df159e4;hpb=5381d581fe6d0c79a485f3179cd5505b7efb9336 diff --git a/eglwrap.c b/eglwrap.c index 913fd48..43b07ba 100644 --- a/eglwrap.c +++ b/eglwrap.c @@ -77,6 +77,21 @@ eglSwapBuffers (EGLDisplay dpy, EGLSurface surface) return ret; } +void (*eglGetProcAddress (char const *func))(void) +{ + void *ret; + + /* If our library has this symbol, that's what we want to give. */ + ret = dlwrap_real_dlsym (NULL, (const char *) func); + if (ret) + return ret; + + /* Otherwise, just defer to the real eglGetProcAddress */ + EGLWRAP_DEFER_WITH_RETURN (ret, eglGetProcAddress, func); + + return ret; +} + EGLBoolean eglMakeCurrent (EGLDisplay display, EGLSurface draw, EGLSurface read, EGLContext context)