I'm having some problems with an opengl application I'm writing.
GLenum err = 0;
glEnable( GL_DEPTH_TEST );
err = glGetError();
if ( err != GL_NO_ERROR )
printf( "Error: %s\n",glewGetErrorString( err ) );
The above code prints out unknown error to the console, and when I step through it, I get the 1280 code. I've checked the khronos page for glEnable and the enum is there, so why would this cause an issue? I've looked up the error code and it's for an invalid enum, but how can this be?