X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glxwrap.c;h=cccc05f99e1295b0c51165cf226e61164cec956d;hb=e678528e0593be3ffb9b42dd5d523cc0bdee1484;hp=d7d4191ce528ae5b59c5f8a9317b8e99a179d679;hpb=152b67da7b844d043f392002f2d3fc454d537b43;p=fips diff --git a/glxwrap.c b/glxwrap.c index d7d4191..cccc05f 100644 --- a/glxwrap.c +++ b/glxwrap.c @@ -47,10 +47,14 @@ glXSwapBuffers (Display *dpy, GLXDrawable drawable) */ void (*glXGetProcAddressARB (const GLubyte *func))(void) { + static void *libfips_handle = NULL; void *ret; + if (libfips_handle == NULL) + libfips_handle = dlwrap_dlopen_libfips (); + /* If our library has this symbol, that's what we want to give. */ - ret = dlwrap_real_dlsym (NULL, (const char *) func); + ret = dlwrap_real_dlsym (libfips_handle, (const char *) func); if (ret) return ret;