fix glext command hanging without argument

This commit is contained in:
ac-stef
2016-08-08 19:04:18 +02:00
parent c96a983b65
commit 7f9e2b19c9
+1 -1
View File
@@ -33,7 +33,7 @@ void *getprocaddress(const char *name)
bool hasext(const char *exts, const char *ext)
{
int len = strlen(ext);
for(const char *cur = exts; (cur = strstr(cur, ext)); cur += len)
if(len) for(const char *cur = exts; (cur = strstr(cur, ext)); cur += len)
{
if((cur == exts || cur[-1] == ' ') && (cur[len] == ' ' || !cur[len])) return true;
}