it seems some GL libs can return a null extension list (ie, null pointer)

This commit is contained in:
Bill Currie 2002-05-31 03:38:01 +00:00
parent 9134e05aec
commit 381bdb2323

View file

@ -77,6 +77,9 @@ QFGL_ParseExtensionList (const GLubyte * list, const char *name)
const char *start;
char *where, *terminator;
if (!list)
return 0;
// Extension names must not have spaces.
where = (GLubyte *) strchr (name, ' ');
if (where || *name == '\0')