X-Git-Url: https://git.cworth.org/git?p=fips;a=blobdiff_plain;f=eglwrap.c;h=913fd488d74a23dc0d7a9277dfe37525e3db776f;hp=6f009c35c53f3017d49cf8e22caa5a8725ca0966;hb=5569357a9fc7189c2bae43773f44ba576583ec2b;hpb=a9a3c0277f608fcfc7c92a93796db001d36914d4 diff --git a/eglwrap.c b/eglwrap.c index 6f009c3..913fd48 100644 --- a/eglwrap.c +++ b/eglwrap.c @@ -21,6 +21,8 @@ #include "fips.h" +#include "fips-dispatch.h" + #include #include "dlwrap.h" @@ -74,3 +76,16 @@ eglSwapBuffers (EGLDisplay dpy, EGLSurface surface) return ret; } + +EGLBoolean +eglMakeCurrent (EGLDisplay display, EGLSurface draw, EGLSurface read, + EGLContext context) +{ + EGLBoolean ret; + + fips_dispatch_init (FIPS_API_EGL); + + EGLWRAP_DEFER_WITH_RETURN (ret, eglMakeCurrent, display, draw, read, context); + + return ret; +}