[patch] Use dlsym instead of glXGetProcAddress in xdriinfo
Ian Romanick
idr at us.ibm.com
Tue Nov 22 08:11:26 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michel Dänzer wrote:
> On Mon, 2005-11-21 at 18:08 -0500, Felix Kühling wrote:
>
>>The attached patches (monolithic and modular) should fix dynamic linking
>>problems with xdriinfo, that NVidia users were complaining about.
>
> Does their driver support the DRI configuration infrastructure?
Of course not. They use their own OpenGL infrastructure from top to
bottom. I guess I'm not really sure why a user of Nvidia's
closed-source drivers would even care about xdriinfo. It a nonsensical
thing to do.
>>Their libGL doesn't define glXGetProcAddress but only glXGetProcAddressARB.
>>The cleanest solution that works with any libGL is to use dlopen and
>>dlsym instead. This has the nice side effect that it removes all
>>build-time dependencies on libGL and GLX headers.
>
> Couldn't there be an implementation of the DRI configuration
> infrastructure where glXGetProcAddress(ARB) works but dlopen/dlsym
> doesn't though?
Since libGL itself uses dlopen / dlsym, it's doubtful.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFDg0MuX1gOwKyEAw8RAiHbAJ91ku6fTfcjcXlxkhH+NxTiJ8a+fQCeP4JM
jopCtLoq2bcNNaKaa7MdVSc=
=NVmD
-----END PGP SIGNATURE-----
More information about the xorg
mailing list