Added extgl check to agl

This commit is contained in:
Elias Naur 2003-09-25 15:34:13 +00:00
parent a7f8424355
commit 1f0a6136b7
1 changed files with 7 additions and 2 deletions

View File

@ -1497,8 +1497,13 @@ static void *extgl_GetProcAddress(char *name)
#endif
#ifdef _AGL
void *t =(void *)aglGetProcAddress(name);
void *t = aglGetProcAddress(name);
if (t == NULL) {
#ifdef _DEBUG
printf("Could not locate symbol %s\n", name);
#endif
extgl_error = 1;
}
return t;
#endif
}