Many calls in OpenGL are used as sets, such as:
glBegin and glEnd
glEnable and glDisable
You can check the # of Calls column in the Statistics window to make sure that these (and similar sets) are always matched in your application. For example, if you find 5 glBegin calls but only 3 glEnd call, you should modify your code so that you have the same number of each. Unmatched calls typically are a symptom of unneeded code and always indicate imprecise code. Call sets should always match within a frame.
Last updated: 2008-02-08