Re: [AD] is_wgl_extension_supported

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Matthew Leverton wrote:

__wglGetExtensionsStringARB can be null after the function call on
some computers. I think it happened on the GeForce 2 MX 400 card I was
testing on.

Adding this fixed the crash:

if (!__wglGetExtensionsStringARB) return false;

Thanks. I've commtted your fix.

Of course then the OpenGL mode couldn't be set, but that was better
then a crash...

That's not the point where it would give up setting OpenGL mode, so keep looking.


--
Milan Mimica
http://sparklet.sf.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/