diff options
author | Eric Anholt <anholt@freebsd.org> | 2005-11-30 01:17:30 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2005-11-30 01:17:30 +0000 |
commit | ce638f553d89bb202eff94397933ee3c40165819 (patch) | |
tree | 3b186b3bb054c5b8e47170c1d0d09954c6bd2d3e | |
parent | 5777c79b762a65b1610ea59f7f3fd47241f797b6 (diff) |
Bug #5146: Fix building of xdriinfo in the presence of NVIDIA libGL byXORG-6_8_99_903
using the GLX 1.3 glXGetProcAddressARB instead of glXGetProcAddress.
-rw-r--r-- | xdriinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -22,6 +22,7 @@ * */ +#define GLX_GLXEXT_LEGACY #include <GL/glx.h> #include <X11/Xlib.h> #include <stdio.h> @@ -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; |