AGL functions returning GL_FALSE but.....
I am calling several AGL functions. A few of them return GL_FALSE, but when I call aglGetError, it returns the error code AGL
NOERROR. What gives??
The functions that are returning false are aglSetInteger, aglSetWindowRef, and aglEnable. Here is a sample of how I'm testing the return values.
if(GL_FALSE == aglSetCurrentContext(_aglContext))
{
GLenum glErr = aglGetError();
if(glErr != AGL NOERROR)
{
printf("aglSetCurrentContext failed at line %d with error code: %d\n", _LINE_, glErr);
}
else
{
printf("aglSetCurrentContext returned FALSE with error code %d at line %d\n", AGL NOERROR, _LINE_);
}
}
Any idears?
The functions that are returning false are aglSetInteger, aglSetWindowRef, and aglEnable. Here is a sample of how I'm testing the return values.
if(GL_FALSE == aglSetCurrentContext(_aglContext))
{
GLenum glErr = aglGetError();
if(glErr != AGL NOERROR)
{
printf("aglSetCurrentContext failed at line %d with error code: %d\n", _LINE_, glErr);
}
else
{
printf("aglSetCurrentContext returned FALSE with error code %d at line %d\n", AGL NOERROR, _LINE_);
}
}
Any idears?
Various, Mac OS X (10.5.6)