summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-11-30 01:17:30 +0000
committerEric Anholt <anholt@freebsd.org>2005-11-30 01:17:30 +0000
commitce638f553d89bb202eff94397933ee3c40165819 (patch)
tree3b186b3bb054c5b8e47170c1d0d09954c6bd2d3e
parent5777c79b762a65b1610ea59f7f3fd47241f797b6 (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.c5
1 files 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 <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;