Here's an example of how to detect X server extensions:
http://cvs.freedesktop.org/xorg/xc/programs/xdpyinfo/xdpyinfo.c?rev=1.9&view=markup

Look at the print_extension_info() function. Walking through the extensions list looking for "GLX" should do the trick.

 Regards //Johan

-----Original Message-----
From: Jamie Zawinski <[EMAIL PROTECTED]>
To: Johan Walles <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tue, 17 May 2005 04:52:22 -0700
Subject: Re: Bug#309441: xscreensaver: Better handling of failing hacks

Johan Walles wrote:

Also, if all the GL hacks can detect that my display doesn't support the GLX extension that they need, how come XScreensaver can't? And disable the GL hacks automatically?

That message is not being printed by the hacks; it's coming from deep in the bowels of libGL. I don't even know how to detect that.


---------------------------------------------- Mailblocks - A Better Way to Do Email http://about.mailblocks.com/info



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to