aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xorg-clients
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2005-11-30 09:24:21 +0800
committeranholt <anholt@FreeBSD.org>2005-11-30 09:24:21 +0800
commita03325662ef2c790b66cb04ff5045c75450d3b1d (patch)
treef6d941867cbea5267cc2570a138760d0431e32db /x11/xorg-clients
parent392d25b73abd110486594a39d83631559efeea65 (diff)
downloadfreebsd-ports-gnome-a03325662ef2c790b66cb04ff5045c75450d3b1d.tar.gz
freebsd-ports-gnome-a03325662ef2c790b66cb04ff5045c75450d3b1d.tar.zst
freebsd-ports-gnome-a03325662ef2c790b66cb04ff5045c75450d3b1d.zip
Fix the build in the presence of NVIDIA libGL by using the GLX 1.3
glXGetProcAddressARB instead of glXGetProcAddress. PR: ports/76257 Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsdperu.org> / many Obtained from: X.Org CVS
Diffstat (limited to 'x11/xorg-clients')
-rw-r--r--x11/xorg-clients/files/patch-xdriinfo.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/xorg-clients/files/patch-xdriinfo.c b/x11/xorg-clients/files/patch-xdriinfo.c
new file mode 100644
index 000000000000..19305a534243
--- /dev/null
+++ b/x11/xorg-clients/files/patch-xdriinfo.c
@@ -0,0 +1,26 @@
+Index: xdriinfo.c
+===================================================================
+RCS file: /cvs/xorg/xc/programs/xdriinfo/xdriinfo.c,v
+retrieving revision 1.1.3.1
+diff -u -r1.1.3.1 xdriinfo.c
+--- programs/xdriinfo/xdriinfo.c 16 Jun 2004 09:27:39 -0000 1.1.3.1
++++ programs/xdriinfo/xdriinfo.c 23 Nov 2005 04:40:38 -0000
+@@ -22,6 +22,7 @@
+ *
+ */
+
++#define GLX_GLXEXT_LEGACY
+ #include <GL/glx.h>
+ #include <X11/Xlib.h>
+ #include <stdio.h>
+@@ -57,8 +58,8 @@
+ 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;