]> git.cworth.org Git - fips/blobdiff - eglwrap.c
Add dynamic dispatch for any calls to OpenGL functions.
[fips] / eglwrap.c
index 6f009c35c53f3017d49cf8e22caa5a8725ca0966..913fd488d74a23dc0d7a9277dfe37525e3db776f 100644 (file)
--- a/eglwrap.c
+++ b/eglwrap.c
@@ -21,6 +21,8 @@
 
 #include "fips.h"
 
+#include "fips-dispatch.h"
+
 #include <EGL/egl.h>
 
 #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;
+}