Debian patch: 310_segfault_noGLX.diff

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-10-10 10:10:36 +00:00
parent 7b5f326f66
commit 226ff42fd6

View File

@@ -77,6 +77,11 @@ static int glXExtensionSupported(_THIS, const char *extension)
/* It takes a bit of care to be fool-proof about parsing the
* OpenGL extensions string. Don't be fooled by sub-strings, etc.
*/
/* http://bugs.debian.org/537487 */
if (extensions == NULL) {
return 0;
}
start = extensions;