Date: Tue, 22 Feb 2005 00:08:22 -0500 (EST) From: Mikhail Teterin <mi@corbulon.video-collage.com> To: fxkuehl@gmx.de (Felix =?ISO-8859-1?Q?K=FChling?=) Cc: acardenas@bsdperu.org Subject: Re: ports/76257: nvidia_driver breaks xorg-clients build Message-ID: <200502220508.j1M58MAN094098@corbulon.video-collage.com> In-Reply-To: <1109022957.3355.15.camel@trabant>
next in thread | previous in thread | raw e-mail | index | archive | help
> Could you try if the attached patch against xdriinfo.c works with > NVidia's GLX? If it does, then I'll commit this to Xorg CVS. Using glXGetProcAddressARB instead of glXGetProcAddress allows the utility to build, but it still does not work -- the calls return NULL at run-time. If your program only works with Xorg's GLX, than, indeed, the error message may need to become more informative. If, on the other hand, using the glXGetProcAddressARB works when linked with Xorg's GLX -- why bother with the #ifdefs at all? Just use the old call for the time being. :-) -mi > --- ./xdriinfo.c.~1.1.3.1.~ 2004-06-16 11:27:39.000000000 +0200 > +++ ./xdriinfo.c 2005-02-21 22:50:37.000000000 +0100 > @@ -28,6 +28,14 @@ > #include <unistd.h> > #include <string.h> > > +#ifdef GLX_VERSION_1_4 > +# define GLX_GET_PROC_ADDRESS(name) \ > + glXGetProcAddress((const GLubyte *)(name)) > +#else > +# define GLX_GET_PROC_ADDRESS(name) \ > + glXGetProcAddressARB((const GLubyte *)(name)) > +#endif > + > typedef const char * glXGetScreenDriver_t (Display *dpy, int scrNum); > typedef const char * glXGetDriverConfig_t (const char *driverName); > > @@ -57,10 +65,13 @@
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502220508.j1M58MAN094098>