diff --git a/libs/video/targets/qfgl_ext.c b/libs/video/targets/qfgl_ext.c index bc6b2dd59..e0c3bf7bc 100644 --- a/libs/video/targets/qfgl_ext.c +++ b/libs/video/targets/qfgl_ext.c @@ -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')