]> git.cworth.org Git - fips/blobdiff - glxwrap.c
Add dynamic dispatch for any calls to OpenGL functions.
[fips] / glxwrap.c
index 84bf48522565e489de274cd87e752d5a470ebd01..799a0190f794de1a63346c372f17b2148835879d 100644 (file)
--- a/glxwrap.c
+++ b/glxwrap.c
@@ -21,6 +21,8 @@
 
 #include "fips.h"
 
+#include "fips-dispatch.h"
+
 #include <X11/Xlib.h>
 #include <GL/gl.h>
 #include <GL/glx.h>
@@ -57,3 +59,15 @@ void (*glXGetProcAddressARB (const GLubyte *func))(void)
 
        return ret;
 }
+
+Bool
+glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx)
+{
+       Bool ret;
+
+       fips_dispatch_init (FIPS_API_GLX);
+
+       GLWRAP_DEFER_WITH_RETURN (ret, glXMakeCurrent, dpy, drawable, ctx);
+
+       return ret;
+}