[PATCH] GLX: Avoid a crash if we ever end up trying to use glapi_noop_table

Jon TURNEY jon.turney at dronecode.org.uk
Tue Jan 6 17:10:57 PST 2009


I'm not sure if this is patch-worthy or not, but whilst getting GLX to work 
again on Cygwin/X I came across this...

If the GL dispatch table pointer points to glapi_noop_table, (due to some kind 
of terrible failure during GL initialization), running glxinfo for e.g. will 
crash the X server, as DoGetString(GL_VERSION) tries to do atof() on the null 
pointer returned by the noop dispatch function.

Given that all that noop dispatch table stuff is in there, I guess it's 
preferable that it doesn't crash in that case.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0018-GLX-Avoid-a-crash-when-we-have-an-uninitialized-GL.patch
URL: <http://lists.x.org/archives/xorg/attachments/20090107/0f5089c4/attachment.ksh>


More information about the xorg mailing list