GL error: invalid enumerant

what is this mean?

It means that you passed an invalid parameter to an OpenGL function, for example if you would do:

glDisable( GL_LINE_LOOP) you would get this error as the GL_LINE_LOOP is intended to be used with glBegin(…).

Hope that helps.
Mikael