When Should One Call glGetError ?

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2009-12-26T13:03:54Z Indexed on 2010/06/13 15:02 UTC
Read the original article Hit count: 273

Filed under:
|

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)?

© Stack Overflow or respective owner

Related posts about opengl

Related posts about tao