When Should One Call glGetError ?
- by Ngu Soon Hui
glLoadIdentity says
GL_INVALID_OPERATION is generated if
glLoadIdentity is executed between the
execution of glBegin and the
corresponding execution of glEnd.
But GL_INVALID_OPERATION is a flag returns by glGetError.
My question is, when should we call glGetError ( in order to know whether we are calling opengl in correct sequence)?