mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
it seems some GL libs can return a null extension list (ie, null pointer)
This commit is contained in:
parent
9134e05aec
commit
381bdb2323
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue