A simple question, does the error code 0x0500 mean anything besides there was an error?
                
                A: 
                
                
              It means "GL_INVALID_ENUM" -- somewhere you passed an invalid GLenum. This is defined in the gl.h header file. Indeed--it's not very helpful.
EDIT: My strategy in dealing with these errors it to surround OpenGL calls with a macro that asserts everything is ok (glGetError() GL_NO_ERROR). These get compiled out for performance tests.
                  MrAnonymous
                   2010-09-13 22:19:21
                
              What I think makes it worse, is I was hoping this would be the thing to tell me why my textures aren't drawing. Sadly it isn't.
                  kuroutadori
                   2010-09-13 22:28:41
                I know!  There are never any clear answers!  I wish there was a glGetErrorString() so that drivers could leave error messages but alas I have scanned the gl.h file multiple times and found nothing.
                  MrAnonymous
                   2010-09-13 22:36:50