From ce638f553d89bb202eff94397933ee3c40165819 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 30 Nov 2005 01:17:30 +0000 Subject: Bug #5146: Fix building of xdriinfo in the presence of NVIDIA libGL by using the GLX 1.3 glXGetProcAddressARB instead of glXGetProcAddress. --- xdriinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xdriinfo.c b/xdriinfo.c index 7d788e3..ebd368b 100644 --- a/xdriinfo.c +++ b/xdriinfo.c @@ -22,6 +22,7 @@ * */ +#define GLX_GLXEXT_LEGACY #include #include #include @@ -57,8 +58,8 @@ int main (int argc, char *argv[]) { char *funcArg = NULL; char *dpyName = NULL; - GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddress ("glXGetScreenDriver"); - GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddress ("glXGetDriverConfig"); + GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddressARB ("glXGetScreenDriver"); + GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddressARB ("glXGetDriverConfig"); if (!GetScreenDriver || !GetDriverConfig) { fprintf (stderr, "libGL is too old.\n"); return 1; -- cgit v1.2.3