mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-04 18:40: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;
|
const char *start;
|
||||||
char *where, *terminator;
|
char *where, *terminator;
|
||||||
|
|
||||||
|
if (!list)
|
||||||
|
return 0;
|
||||||
|
|
||||||
// Extension names must not have spaces.
|
// Extension names must not have spaces.
|
||||||
where = (GLubyte *) strchr (name, ' ');
|
where = (GLubyte *) strchr (name, ' ');
|
||||||
if (where || *name == '\0')
|
if (where || *name == '\0')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue