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)
|
if (t == NULL)
|
||||||
{
|
{
|
||||||
t = GetProcAddress(lib_glu_handle, name);
|
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;
|
extgl_error = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return t;
|
return t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1476,6 +1480,9 @@ static void *extgl_GetProcAddress(char *name)
|
||||||
{
|
{
|
||||||
t = dlsym(lib_glu_handle, name);
|
t = dlsym(lib_glu_handle, name);
|
||||||
if (t == NULL) {
|
if (t == NULL) {
|
||||||
|
#ifdef _DEBUG
|
||||||
|
printf("Could not locate symbol %s\n", name);
|
||||||
|
#endif
|
||||||
extgl_error = 1;
|
extgl_error = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1663,6 +1670,9 @@ static int QueryExtension(const GLubyte*extensions, const char *name)
|
||||||
GLubyte *where, *terminator;
|
GLubyte *where, *terminator;
|
||||||
|
|
||||||
if (extensions == NULL) {
|
if (extensions == NULL) {
|
||||||
|
#ifdef _DEBUG
|
||||||
|
printf("NULL extension string\n");
|
||||||
|
#endif
|
||||||
extgl_error = 1;
|
extgl_error = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -3373,7 +3383,6 @@ int extgl_Initialize()
|
||||||
/* load AGL extensions */
|
/* load AGL extensions */
|
||||||
extgl_InitializeAGL();
|
extgl_InitializeAGL();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return extgl_error;
|
return extgl_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue