More verbose output from extgl.c
This commit is contained in:
parent
482179bba1
commit
8eb376ca5d
|
@ -1460,10 +1460,14 @@ static void *extgl_GetProcAddress(char *name)
|
|||
if (t == NULL)
|
||||
{
|
||||
t = GetProcAddress(lib_glu_handle, name);
|
||||
if (t == NULL)
|
||||
if (t == NULL) {
|
||||
#ifdef _DEBUG
|
||||
printf("Could not locate symbol %s\n", name);
|
||||
#endif
|
||||
extgl_error = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return t;
|
||||
#endif
|
||||
|
||||
|
@ -1476,6 +1480,9 @@ static void *extgl_GetProcAddress(char *name)
|
|||
{
|
||||
t = dlsym(lib_glu_handle, name);
|
||||
if (t == NULL) {
|
||||
#ifdef _DEBUG
|
||||
printf("Could not locate symbol %s\n", name);
|
||||
#endif
|
||||
extgl_error = 1;
|
||||
}
|
||||
}
|
||||
|
@ -1663,6 +1670,9 @@ static int QueryExtension(const GLubyte*extensions, const char *name)
|
|||
GLubyte *where, *terminator;
|
||||
|
||||
if (extensions == NULL) {
|
||||
#ifdef _DEBUG
|
||||
printf("NULL extension string\n");
|
||||
#endif
|
||||
extgl_error = 1;
|
||||
return 0;
|
||||
}
|
||||
|
@ -3373,7 +3383,6 @@ int extgl_Initialize()
|
|||
/* load AGL extensions */
|
||||
extgl_InitializeAGL();
|
||||
#endif
|
||||
|
||||
return extgl_error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue