OpenGL errors are stored in a queue until the error is actually handled.[footnotes 1] Therefore, if you do not regularly test for errors, you will not know necessarily which function call elicited a particular error. As such, error testing should be done regularly if you need to know where an error came from.