From 381bdb2323cf18ab8f2ec9604bcce1db1211a2d2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 31 May 2002 03:38:01 +0000 Subject: [PATCH] it seems some GL libs can return a null extension list (ie, null pointer) --- libs/video/targets/qfgl_ext.c | 3 +++ 1 file changed, 3 insertions(+) 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')